Skip to content

JsNumberToDouble

Limin Zhu edited this page Oct 9, 2015 · 1 revision

Retrieves the double value of a number value.

Syntax

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

Parameters

  • value: The number value to convert to a double value.
  • doubleValue: The double value.

Return Value

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

Remarks

This function retrieves the value of a number value. It will fail with JsErrorInvalidArgument if the type of the value is not number.

Clone this wiki locally