Even odder is the default setting of the rounding to be "none" on
NumberFormatter which effectively truncates the number when it applies
the precision.  

I know of no world where that make sense over "nearest".  

Quite bizarre.

--- In [email protected], "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> OK, I can always get around this stuff by writing my own formatter or 
> extending an existing one, but I naively expect the number and currency 
> formatters (say precision 2), to format "0.23" as "0.23" rather than
".23". 
> Similarly I expect "-0.23" to be formatted as "-0.23" and not return
"-.23".
> 
> I know there's ways round this, but I find this formatting default
odd. Even 
> if it were popular in some quarters (is it?), I'd at least expect the 
> classes supplied by Adobe to allow the choice of having the formatter 
> generate that leading 0 or not.
> 
> Is it just me that finds this odd? Am I right to expect that zero in
front 
> of the decimal point?
> 
> Paul
>


Reply via email to