PDF-ShellTools > Ideas/Suggestions

Format Double type

(1/1)

Antoine:
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:
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:

--- Quote from: RTT on August 01, 2011, 05:45:30 PM ---But can be done from the handler, passing the value already formatted.

--- End quote ---
What does this mean. Would you have an example ?

RTT:
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.

Navigation

[0] Message Index

Go to full version