Author Topic: Format Double type  (Read 3162 times)

0 Members and 1 Guest are viewing this topic.

Antoine

  • Guest
Format Double type
« on: August 01, 2011, 02:46:15 PM »
The same way you explained how to format the date, is it possible to format a Double type to always display 2 decimals ?
I went through MSDN Reference and this seems not possible.
But maybe you have a solution ;)

RTT

  • Administrator
  • *****
  • Posts: 778
Re: Format Double type
« Reply #1 on: August 01, 2011, 05:45:30 PM »
I don't see how to do it either, at least with the property system. The numberFormat available options don't deal yet with floating point data. For sure MS will extend it in future API versions.
But can be done from the handler, passing the value already formatted.

Antoine

  • Guest
Re: Format Double type
« Reply #2 on: August 01, 2011, 06:08:30 PM »
But can be done from the handler, passing the value already formatted.
What does this mean. Would you have an example ?

RTT

  • Administrator
  • *****
  • Posts: 778
Re: Format Double type
« Reply #3 on: August 01, 2011, 11:20:13 PM »
I mean, if the format is done from the PDF-ShellTools code. But even so, only work if the decimals are significant. Only grants no more that two are shown.