• 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: number formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: number formatting


  • Subject: Re: number formatting
  • From: Christopher Anand <email@hidden>
  • Date: Sat, 23 Feb 2002 16:56:45 -0500

On Saturday, February 23, 2002, at 04:45 PM, Lance Bland wrote:

Ben,

On Saturday, February 23, 2002, at 04:23 PM, email@hidden wrote:

The value is represented in the machine as 0.34999...

To force it to show up as 0.35 in a text field the text field would have
to force the precision to 2 places. Then you'd be still complaining about
the cases where you wanted more or less precision.


The funny thing is that IB seems to do rounding in other cases when I don't want it! Try as I might, I couldn't set up an NSSlider in IB with minimum value .25, because it insisted on rounding to one decimal place.

Christopher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: number formatting (From: Lance Bland <email@hidden>)

  • Prev by Date: Re: number formatting
  • Next by Date: Re: main loop and idle function
  • Previous by thread: Re: number formatting
  • Next by thread: Re: number formatting
  • Index(es):
    • Date
    • Thread