Round a float
Round a float
- Subject: Round a float
- From: Lorenzo <email@hidden>
- Date: Mon, 28 Jul 2003 15:41:28 +0200
Hi,
I have a
float floatSize = 105.55791;
and I would like to print it as @"105.5";
I tried this
NSLog(@"round 0.0f", floatSize);
but it didn't work as I expected.
Any suggestion?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.