MathObject.round(Double) Methode

Definitie

Hiermee wordt het opgegeven getal naar beneden of naar boven afgerond op het dichtstbijzijnde gehele getal.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

public:
 static double round(double d);
[Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Math_round)]
public static double round(double d);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Math_round)]
public static double round(double d);
[<Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Math_round)>]
static member round : double -> double
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Math_round)>]
static member round : double -> double
Public Shared Function round (d As Double) As Double

Parameters

d
Double

Het getal dat moet worden afgrond.

Retouren

Als het breukdeel d kleiner is dan halverwege het volgende gehele getal, d afgerond naar beneden. Als het breukdeel d halverwege of meer is dan het volgende gehele getal, d afgerond.

Kenmerken

Van toepassing op