Språk

NumberPrototype.toExponential(Object, Object) Metod

Definition

Skapar en strängrepresentation av den angivna NumberObject som använder vetenskaplig (E) notation.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

public:
 static System::String ^ toExponential(System::Object ^ thisob, System::Object ^ fractionDigits);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Number_toExponential)]
public static string toExponential(object thisob, object fractionDigits);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Number_toExponential)>]
static member toExponential : obj * obj -> string
Public Shared Function toExponential (thisob As Object, fractionDigits As Object) As String

Parametrar

thisob
Object

Det objekt som den här metoden agerar på.

fractionDigits
Object

Ett tal mellan 0 och 20 som representerar antalet decimaler som ska visas. Standardvärdet är 16.

Returer

En strängrepresentation av thisob.

Attribut

Gäller för

Se även