You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Limin Zhu edited this page Oct 9, 2015
·
1 revision
Retrieves the int value of a number value.
Syntax
STDAPI_(JsErrorCode)
JsNumberToInt(
_In_ JsValueRef value,
_Out_ int *intValue);
Parameters
value: The number value to convert to an int value.
intValue: The int value.
Return Value
The code JsNoError if the operation succeeded, a failure code otherwise.
Remarks
This function retrieves the value of a number value and converts to an int value.
It will fail with JsErrorInvalidArgument if the type of the value is not number.