asp.net.ph

Math.Floor Method

System Namespace   Math Class


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

[ VB ]
Public Shared Function Floor ( _
   ByVal d As Double _
) As Double

[ C# ]
public static double Floor (
   double d
);

[ C++ ]
public: static double Floor (
   double d
);

[ JScript ]
public static function Floor (
   d : double
) : double;

Parameters

d
A number.

Return Value

The largest whole number less than or equal to d. If d is equal to NaN, NegativeInfinity, or PositiveInfinity, then that value is returned.

Remarks

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

See Also

Math Members   Round   Ceiling Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note