MathObject::round Method (Double)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Rounds the specified number down or up to the nearest integer.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::None, JSBuiltin::Math_round)]
static double round(
	double d
)

Parameters

d
Type: System::Double

The number to round.

Return Value

Type: System::Double

If the fractional part of d is less than halfway to the next integer, d rounded down. If the fractional part of d is halfway or more to the next integer, d rounded up.

.NET Framework
Available since 1.1
Return to top
Show: