NumberPrototype::toPrecision Method (Object^, Object^)
.NET Framework (current version)
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.
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: