NumberPrototype.toExponential(Object, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個使用科學(E)符號的字串表示 NumberObject 法。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
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
參數
- thisob
- Object
這個方法作用的對象。
- fractionDigits
- Object
一個介於 0 到 20 之間的數字,代表要顯示的小數點數。 預設值為 16。
傳回
的字串表示 thisob。
- 屬性