A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Auradrummer » Wed Apr 08, 2009 11:13 am
Hello,
How can I round UP a dFloat with 2 decimals?
Developing a racing game.
-
Auradrummer
-
- Posts: 132
- Joined: Sat May 17, 2008 9:17 am
by Julio Jerez » Wed Apr 08, 2009 11:23 am
maybe
A = dFloat (ceiling (A * 100.0f) * 0.01f);
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Auradrummer » Wed Apr 08, 2009 12:52 pm
Thanks Master,
Sincerously, I had never heard about that function.
Only one observation:
In <cmath> library (not .h), I found the command 'ceil', not 'ceiling' that do this, if someone else have some interest on it.
Let's keep the work!
Developing a racing game.
-
Auradrummer
-
- Posts: 132
- Joined: Sat May 17, 2008 9:17 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 18 guests