Aracılığıyla paylaş


NumberPrototype.toFixed(Object, Double) Yöntem

Tanım

Belirtilen NumberObject ondalık basamak sayısını görüntüleyen belirtilen dize gösterimini oluşturur.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

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

Parametreler

thisob
Object

Bu yöntemin üzerinde işlem yaptığı nesne.

fractionDigits
Double

Görüntülenecek ondalık basamak sayısını temsil eden 0 ile 20 arasında bir sayı. Varsayılan değer, 0'dur.

Döndürülenler

dize gösterimi thisob.

Öznitelikler

Şunlara uygulanır

Ayrıca bkz.