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
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.
Comment