Skip to content

JsConvertValueToNumber

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

Converts the value to number using standard JavaScript semantics.

Syntax

STDAPI_(JsErrorCode)
    JsConvertValueToNumber(
    _In_ JsValueRef value,
    _Out_ JsValueRef *numberValue);

Parameters

  • value: The value to be converted.
  • numberValue: The converted value.

Return Value

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

Remarks

Requires an active script context.

Clone this wiki locally