MathObject.round(Double) Methode

Definition

Rundet die angegebene Zahl nach unten oder auf die nächste ganze Zahl auf.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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

Parameter

d
Double

Die zu rundende Zahl.

Gibt zurück

Wenn der Bruchteil d kleiner als die Hälfte der nächsten ganzen Zahl ist, d abgerundet. Wenn der Bruchteil halber d oder mehr auf die nächste ganze Zahl liegt, d wird aufgerundet.

Attribute

Gilt für: