RTTSoftware Support Forum

PDF-ShellTools => Ideas/Suggestions => Topic started by: Antoine on August 01, 2011, 02:46:15 PM

Title: Format Double type
Post by: Antoine 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 ;)
Title: Re: Format Double type
Post by: RTT 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.
Title: Re: Format Double type
Post by: Antoine 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 ?
Title: Re: Format Double type
Post by: RTT 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.