• 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
rounding a float
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rounding a float


  • Subject: rounding a float
  • From: "Jay Rimalrick" <email@hidden>
  • Date: Sat, 29 Nov 2003 19:17:56 -0500

What is the easiest way to round a float value with either c or objective-c. I
need this float value to be consistent with the rounding of currency
e.g.
1.255 rounds to 1.26 and
1.254 rounds to 1.25

any and all help is greatly appreciated.

Thanks,
-jay




________________________________________________________________
Sent via the WebMail system at 1st.net
_______________________________________________
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: rounding a float
      • From: Alastair Houghton <email@hidden>
    • Re: rounding a float
      • From: Ed Watkeys <email@hidden>
    • Re: rounding a float
      • From: Kyle Moffett <email@hidden>
    • Re: rounding a float
      • From: j o a r <email@hidden>
    • Re: rounding a float
      • From: Steve Bird <email@hidden>
  • Prev by Date: NSEPSImageRep to NSBitmapImageRep to GWorld problems
  • Next by Date: Re: rounding a float
  • Previous by thread: Re: NSEPSImageRep to NSBitmapImageRep to GWorld problems
  • Next by thread: Re: rounding a float
  • Index(es):
    • Date
    • Thread