| Applying science to business management |
  
round
Format: round( x, n )
Arguments: (num) x Any real or complex number to
be rounded
(int) n Optional number of decimal places, between -308
and 15; default = 0
Returns: (num) x rounded to n decimal
places
Description: If n is positive, x is
rounded to the nth decimal place. If n is negative,
x is rounded to the left of the decimal point. For
example, round(x,-3) rounds x to the nearest
thousand. If the first digit discarded is 5 or greater, the
preceding digit is rounded up.
Examples: round(12345.6789,2)
= 12345.68
round(12345.6789,0) = 12346
round(12345.6789,-3) = 12000
See Also: floor, ceil, integer
|