• 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
fastest way to round NSNumber
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fastest way to round NSNumber


  • Subject: fastest way to round NSNumber
  • From: Nick <email@hidden>
  • Date: Sun, 02 Mar 2003 00:11:37 -0500

Hello.

I have a NSNumber with a double value whose NSString representation I want to truncate after the second decimal place... i.e. I have "90.3000000000001" and I want to have "90.30". I can fix it through string manipulation. However, I was wondering if there is a faster method out there to do this?

Nick
_______________________________________________
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.

  • Follow-Ups:
    • Re: fastest way to round NSNumber
      • From: Nathan Day <email@hidden>
  • Prev by Date: Drawing RAW data
  • Next by Date: Re: InterfaceBuilder and .mm files
  • Previous by thread: Drawing RAW data
  • Next by thread: Re: fastest way to round NSNumber
  • Index(es):
    • Date
    • Thread