• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Formatting a BigDecimal in a WOString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Formatting a BigDecimal in a WOString (From: Paul Hoadley <email@hidden>)
 >Re: Formatting a BigDecimal in a WOString (From: Chuck Hill <email@hidden>)

  • Prev by Date: RE: Confusing lock error solved, but now a restoreSessionWithID lock issue
  • Next by Date: Re: Confusing lock error solved, but now a restoreSessionWithID lock issue
  • Previous by thread: Re: Formatting a BigDecimal in a WOString
  • Next by thread: Re: Server Admin Propagate Permission trouble
  • Index(es):
    • Date
    • Thread