• 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
Another newbie question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another newbie question...


  • Subject: Another newbie question...
  • From: email@hidden
  • Date: Mon, 28 Jan 2002 19:51:05 -0800

I may only need one person to answer this, but if I have a float/double and I want to round up the hundredths digit, can I do this with a simple C function? I tried a rounding 100*number to the nearest ones digit then returning back number/100, but it didn't work for some odd reason. I still got a whole lot of decimals like 4.05000000030001 or something like that...

I hope someone can help, and please forgive my ignorance :-)
-Kevin


  • Follow-Ups:
    • Re: Another newbie question...
      • From: "Erik M. Buck" <email@hidden>
    • Rounding up (Was Re: Another newbie question...)
      • From: Esteban <email@hidden>
    • Re: Another newbie question...
      • From: "John C. Randolph" <email@hidden>
    • Re: Another newbie question...
      • From: Sam Goldman <email@hidden>
  • Prev by Date: Menu About to show notification
  • Next by Date: frozen window
  • Previous by thread: Re: Menu About to show notification
  • Next by thread: Re: Another newbie question...
  • Index(es):
    • Date
    • Thread