Skip to main content This browser is no longer supported. Show Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Math.Floor Method
DefinitionReturns the largest integral value less than or equal to the specified number. In this articleOverloads
RemarksThe behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward negative infinity. Floor(Double)Returns the largest integral value less than or equal to the specified double-precision floating-point number.
Parametersd Double A double-precision floating-point number. ReturnsDoubleThe largest integral value less than or equal to ExamplesThe following example illustrates the Math.Floor(Double) method and contrasts it with the Ceiling(Double) method.
RemarksThe behavior of this method follows
IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward negative infinity. In other words, if Starting with Visual Basic 15.8, the performance of Double-to-integer conversion is optimized if you pass the value returned by the
See also
Applies toFloor(Decimal)Returns the largest integral value less than or equal to the specified decimal number.
ParametersReturnsDecimalThe largest integral value less than or equal to ExamplesThe following example illustrates the Math.Floor(Decimal) method and contrasts it with the Ceiling(Decimal) method.
RemarksThe behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward negative infinity. In other words, if See also
Applies toWhich function returns the largest integer that is less than or equal to its argument?Java - floor() Method
The method floor gives the largest integer that is less than or equal to the argument.
Which function returns largest integer value?MAX will return the largest value in a given list of arguments. From a given set of numeric values, it will return the highest value. Unlike MAXA function, the MAX function will count numbers but ignore empty cells, text, the logical values TRUE and FALSE, and text values.
|