DecimalFormat doesn't treat AtomicInteger and AtomicLong which are new subclasses of Number correctly.
They are treated as double, therefore information may be lost for some numbers.
For example, in ja_JA locale,
format(new AtomicLong(Long.MAX_VALUE) prints 9,223,372,036,854,776,000
while
format(new Long(Long.MAX_VALUE) prints 9,223,372,036,854,775,807
They should be supported as well as Integer and Long.
###@###.### 2005-06-01 04:18:15 GMT
They are treated as double, therefore information may be lost for some numbers.
For example, in ja_JA locale,
format(new AtomicLong(Long.MAX_VALUE) prints 9,223,372,036,854,776,000
while
format(new Long(Long.MAX_VALUE) prints 9,223,372,036,854,775,807
They should be supported as well as Integer and Long.
###@###.### 2005-06-01 04:18:15 GMT