NumberPrototype::toFixed Method (Object^, Double)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Creates a string representation of the specified NumberObject that displays the specified number of decimal digits.

Namespace:   Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::HasThisObject, 
	JSBuiltin::Number_toFixed)]
static String^ toFixed(
	Object^ thisob,
	double fractionDigits
)

Parameters

thisob
Type: System::Object^

The object that this method is acting upon.

fractionDigits
Type: System::Double

A number between 0 and 20 that represents the number of decimal places to display. The default is 0.

Return Value

Type: System::String^

A string representation of thisob.

.NET Framework
Available since 1.1
Return to top
Show: