Re: Formatting a BigDecimal in a WOString
Re: Formatting a BigDecimal in a WOString
- Subject: Re: Formatting a BigDecimal in a WOString
- From: Paul Hoadley <email@hidden>
- Date: Sat, 8 Nov 2008 13:54:45 +1030
On 08/11/2008, at 12:13 PM, Chuck Hill wrote:
Punt? I might be a bug in NSNumberFormatter. I usually use the
formatter binding rather than the format string bindings (dateFormat
and numberFormat). You could try that and pass back an instance of
a Java formatter, e.g. java.text.NumberFormat.
Thanks Chuck. 'DecimalFormat("#.######")' seems to work how I assumed
'numberFormat' would.
FWIW, another workaround was to call 'doubleValue()' on the BigDecimal
in the 'value' binding, though obviously there's potentially a loss of
precision here.
--
Paul.
w http://logicsquad.net/
h http://paul.hoadley.name/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden