By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,388 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,388 IT Pros & Developers. It's quick & easy.


P: 11
Is there a way
i could convert the number


to 63.05

Nov 6 '06 #1
Share this Question
Share on Google+
4 Replies

P: 11
without adding any extra value
Nov 6 '06 #2

P: 40
easiest thing to do is to use the "setprecision(N)" command and have N be a global int const for the desired ammount of decimal places that way you can chage it easier later on when code gets really big and complex n confusing
Nov 6 '06 #3

P: 85
What you want is to return the ceiling of the number. The ceiling of a number is the
least integer that is not smaller than x.(CRC Standard Mathematical Tables). For examople the ceiling of pi is 4 etc.
Nov 8 '06 #4

P: 357
use "ceil(x)" where x is u rnum! u have to include <math.h>
Nov 9 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.