ROUND()

Syntax. ROUND(number,num_digits)

Definition. This function rounds a number to a specified number of decimal places.

Arguments

  • number (required) The number you want to round

  • num_digits (required) The number of decimal places to which you want to round a number

BackgroundFor our number system, rounding is unavoidable. Most number values are rounded at some point. There are many reasons to round numbers: Large numbers are clearer and can be more easily calculated, such as for demographic statistics or pi (π). Also, (almost) all prices are rounded to two decimal places because the smallest unit for money amounts is one cent.

If the number after the number to be rounded is greater than 4, the number is rounded up. If this number is smaller than or equal to 4, the number is rounded down. Examples:

  • $3.2549 is rounded to $3.25

  • $3.2551 is rounded to $3.26

Negative values are rounded up, away from 0.

  • –$3.2549 is rounded to –$3.25

  • –$3.2551 is rounded to –$3.26

If num_digits is greater than zero, then the number is rounded to the specified number of decimal places. If num_digits is zero, then the number is rounded to the nearest integer. If num_digits is less than zero, then the number is rounded to the left of the decimal point.

Example. Assume that for a price calculation you want to round the following value to two decimal places: $14.5943.

The formula =ROUND(14.5943,2) returns $14.59.

See Also

CEILING(), CEILING.PRECISE(), EUROCONVERT(), FLOOR(), FLOOR.PRECISE(), INT(), MOD(), MROUND(), ROUNDDOWN(), ROUNDUP(), TRUNC()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.187.108