rounding a float
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.