Mathematica 9 is now available

Floor

Usage

Floor[x] gives the greatest integer less than or equal to x.


Notes

• Mathematical function (see Section A.3.10).
• Examples: Floor[2.4]LongRightArrow ; Floor[2.6]LongRightArrow ; Floor[-2.4]LongRightArrow ; Floor[-2.6]LongRightArrow .
Floor[x] can be entered in StandardForm and InputForm as  x  , AliasIndicatorlfAliasIndicator x AliasIndicatorrfAliasIndicator or \[LeftFloor] x \[RightFloor].
Floor[x] returns an integer when x is any numeric quantity, whether or not it is an explicit number.
• Example: Floor[Pi^2]LongRightArrow .
• For exact numeric quantities, Floor internally uses numerical approximations to establish its result. This process can be affected by the setting of the global variable $MaxExtraPrecision.
• See Section 3.2.2.
• Implementation notes: see Section A.9.4.
• See also: Ceiling, Round, IntegerPart, Chop.
• New in Version 1; modified in 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.