hexToDec

converts a hexadecimal color code to the decimal format

number hexToDec(string hex);

Parameters

hexstringthe hexadecimal color code

Returns

numberthe decimal color code

Example

webix.color.hexToDec("ff0066");// -> 16711782

See also
Back to top