Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

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

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend