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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph