NumberPrototype.toFixed(Object, Double) Metodo
Definizione
Crea una rappresentazione di stringa dell'oggetto NumberObject specificato che visualizza il numero specificato di cifre decimali.Creates a string representation of the specified NumberObject that displays the specified number of decimal digits.
Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.
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
Parametri
- thisob
- Object
Oggetto su cui agisce questo metodo.The object that this method is acting upon.
- fractionDigits
- Double
Numero compreso tra 0 e 20 che rappresenta il numero di posizioni decimali da visualizzare.A number between 0 and 20 that represents the number of decimal places to display. Il valore predefinito è 0.The default is 0.
Restituisce
Rappresentazione di stringa di thisob
.A string representation of thisob
.
- Attributi