Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Math.Floor Method

Returns the largest integer less than or equal to the specified number.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Supported by Portable Class Library Floor(Decimal) Returns the largest integer less than or equal to the specified decimal number.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library Floor(Double) Returns the largest integer less than or equal to the specified double-precision floating-point number.
Top

The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward negative infinity.

Show:
© 2015 Microsoft