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

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 110: Line 110:
 
: returns <tt>'''-2'''</tt>.
 
: returns <tt>'''-2'''</tt>.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: TRUNC function|TRUNC]]
 
* [[Documentation/How_Tos/Calc: TRUNC function|TRUNC]]
 
* [[Documentation/How_Tos/Calc: ROUND function|ROUND]]
 
* [[Documentation/How_Tos/Calc: ROUND function|ROUND]]

Revision as of 19:08, 16 July 2018


INT

Rounds a number down to the nearest integer.

Syntax:

INT(number)

returns number rounded down to the nearest integer.
Negative numbers round down to the integer below: -1.3 rounds to -2.

Example:

INT(5.7)

returns 5

INT(-1.3)

returns -2.



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