Difference between revisions of "Documentation/How Tos/Calc: ROUNDUP function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
m |
||
Line 41: | Line 41: | ||
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
− | [[Category: Documentation/Reference/Calc]] | + | [[Category: Documentation/Reference/Calc/Mathematical functions]] |
Revision as of 07:38, 3 May 2010
ROUNDUP
Rounds a number up, away from zero, to a certain precision.
Syntax:
ROUNDUP(number; places)
- returns number rounded up (away from zero) to places decimal places. If places is omitted or zero, the function rounds up to an integer. If places is negative, the function rounds up to the next 10, 100, 1000, etc.
Example:
ROUNDUP(1.1111; 2)
- returns 1.12
ROUNDUP(1.2345; 1)
- returns 1.3
ROUNDUP(45.67; 0)
- returns 46
ROUNDUP(-45.67)
- returns -46
ROUNDUP(987.65; -2)
- returns 1000
If these examples do not seem to work, see Tools - Options - OpenOffice.org Calc - Calculate to check the display precision.