Difference between revisions of "Documentation/How Tos/Calc: ROUNDDOWN function"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 117: Line 117:
 
If these examples do not seem to work, see '''Tools - Options - OpenOffice.org Calc - Calculate''' to check the display precision.  
 
If these examples do not seem to work, see '''Tools - Options - OpenOffice.org Calc - Calculate''' to check the display precision.  
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: INT function|INT]]
 
* [[Documentation/How_Tos/Calc: INT function|INT]]
 
* [[Documentation/How_Tos/Calc: TRUNC function|TRUNC]]
 
* [[Documentation/How_Tos/Calc: TRUNC function|TRUNC]]

Revision as of 19:07, 16 July 2018


ROUNDDOWN

Rounds a number down, toward zero, to a certain precision.

Syntax:

ROUNDDOWN(number; places)

returns number rounded down (towards zero) to places decimal places. If places is omitted or zero, the function rounds down to an integer. If places is negative, the function rounds down to the next 10, 100, 1000, etc.
This function rounds towards zero. See ROUNDUP and ROUND for alternatives.

Example:

ROUNDDOWN(1.234; 2)

returns 1.23

ROUNDDOWN(45.67; 0)

returns 45

ROUNDDOWN(-45.67)

returns -45

ROUNDDOWN(987.65; -2)

returns 900

If these examples do not seem to work, see Tools - Options - OpenOffice.org Calc - Calculate to check the display precision.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_ROUNDDOWN_function&oldid=243290"
Views
Personal tools
Navigation
Tools