Top | Previous | Next |
Strings / fromHex |
fromHex(string) Returns an integer value of the hex formatted string argument. Numbers outside of the range (-231) - (231-1), and strings that are not hex numbers, return null.
fromHex("ff") ...returns 255
fromHex("0xff") ...returns 255
fromHex("-ff") ...returns -255
|