toDecimal

Convert a hexadecimal to a decimal number

Usage

visionWeb.toDecimal(str);

Parameters

ParameterDescriptionTypeDefault
strHex stringstring-

Returns

Number-The hexadecimal value represented by the passed in string.

Example

visionWeb.toDecimal("0x32");
> 50