10-08-2009 11:56 PM
Given a pattern "000000.000" and a double with value 123.78
I need output of "000123.780".
Overall I need to support format descriptors f,g,E.
I have looked at the threads on this and it seems that
MessageFormatter does not support numeric classes.
One message I saw ( http://tinyurl.com/yldkun4 )
said to check for custom formatting methods here...
This code has a license which is non-commercial only
(and it's sun, they don't mess around.)
It would be a substantial pain to hand roll this code.
Tips, code, bsd open source refs?
Help me please!
thanks so much.
Solved! Go to Solution.
10-09-2009 02:20 PM
Any help out there?
Please, if there is something wrong with the way I have posted, let me know!
I will fix it ASAP.
I would just like a little assistance here.
10-17-2009 11:19 PM
I take it
Formatter.formatNumber(double number, int decimals)
Formats a decimal number using locale-specific rules, with the specified number of decimals.
...didnt quite fit your requirement?
10-17-2009 11:53 PM
Part of the spec I am working with has pattern format strings using
'#', '0', and more.
I found another link that supports much of what 'DecimalFormat' class supports, with patterns: