NumberPrototype::toPrecision Method (Object^, Object^)

 

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 precision digits.

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

public:
[JSFunctionAttribute(JSFunctionAttributeEnum::HasThisObject, 
	JSBuiltin::Number_toPrecision)]
static String^ toPrecision(
	Object^ thisob,
	Object^ precision
)

Parameters

thisob
Type: System::Object^

The object that this method is acting upon.

precision
Type: System::Object^

A number between 0 and 21 that represents the number of precision digits to display. Precision digits are the digits of the decimal and the exponent combined.

Return Value

Type: System::String^

A string representation of thisob.

.NET Framework
Available since 1.1
Return to top
Show: