Math Formulas
posted on
Feb 15, 2005 03:18PM
Rounding Integer Absolute Value Count If Random Numbers Roman Numerals
Sign(+/-) Summing Sum If
Without a doubt, the Math Function that I (and most people I come in contact with) use the most is the Round Function. The syntax for this is =ROUND(number,number of digits), where ``number`` is the value you want to round (it can be a number or a formula) and ``number of digits`` is the number of decimal places you want to round. For example, =ROUND(1/3,2) will return 0.33. This is particulary useful when dealing with currency calculations.
Note, you can specify a negative number or zero for ``number of digits``. Specifying zero will return an integer while a negative number will round to the left of the decimal place. An example of this is =ROUND(1000/3,-2), which returns a value of 300.
There are also few ways to round a number/formula up or down.
If you want to round up a number/formula (away from zero), then you want to use the Roundup Function. The syntax is =ROUNDUP(number,number of digits). Note that the syntax is very similar to the Round Function. =ROUNDUP(1/3,0) will return the value of 1.
If you are looking to round down your number/formula (towards zero), then use the Rounddown Function. The syntax is =ROUNDDOWN(number,number of digits).
As with the Round Function, ``number of digits`` can be negative.
Well the ability to round up (or down) is very useful, but what about a situation where you would want to round up (or down) to the nearest nickel?
lmao