floor Method

MathObject.floor Method (Double)

 

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

Calculates the floor of the specified number, which is the largest integer that is less than or equal to the specified number.

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

[JSFunctionAttribute(JSFunctionAttributeEnum.None, JSBuiltin.Math_floor)]
public static double floor(
	double x
)

Parameters

x
Type: System.Double

The number to calculate the floor of.

Return Value

Type: System.Double

The floor of x.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft