Partager via


JsDoubleToNumber Function

Creates a number value from a double value.

Syntax

STDAPI_(JsErrorCode) JsDoubleToNumber(  
   _In_ double doubleValue,  
   _Out_ JsValueRef *value  
);  

Parameters

doubleValue
The double to convert to a number value.

value
The new number value.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)