Vanguard Software
Forecasting & Planning Solutions

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

  Forecasting Software  |  Strategic Planning Software  |  Decision Support Software
Decision Tree Analysis  |  Monte Carlo Simulation Software  |  Risk Analysis Software
Portfolio Analysis Software  |  Expert System Software  |  Market Research Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2010 Vanguard Software Corporation
Home Products Solutions Services Customers Partners Company
Vanguard
Applying science to business management
Vanguard
Print this page   Email this page to a friend