asp.net.ph

Math.Ceiling Method

System Namespace   Math Class


Returns the smallest whole number greater than or equal to the specified number.

[ VB ]
Public Shared Function Ceiling ( _
   ByVal a As Double _
) As Double

[ C# ]
public static double Ceiling (
   double a
);

[ C++ ]
public: static double Ceiling (
   double a
);

[ JScript ]
public static function Ceiling (
   a : double
) : double;

Parameters

a
A number.

Return Value

The smallest whole number greater than or equal to a. If a is equal to NaN, NegativeInfinity, or PositiveInfinity, 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 positive infinity.

See Also

Math Members   Round   Floor 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