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

From Apache OpenOffice Wiki
Jump to: navigation, search
m
(See also:)
Line 30: Line 30:
  
 
'''[[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]]'''
 
'''[[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]]'''
 +
 +
[[Documentation/How_Tos/Calc: Functions listed alphabetically|'''Functions listed alphabetically''']],
 +
[[Documentation/How_Tos/Calc: Functions listed by category|'''Functions listed by category''']]

Revision as of 07:17, 13 September 2008


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:

TRUNC, ROUND, ROUNDDOWN, ROUNDUP

CEILING, FLOOR, EVEN, ODD, MROUND

Mathematical functions

Functions listed alphabetically, Functions listed by category

Personal tools