Returns a numeric representation of a hexadecimal string.
Dec ( "hex" )
Parameters
hex | The hexadecimal string to convert. |
Return Value
Success: | Returns a number. |
Failure: | Returns 0 sets @error to 1 an invalid hex string was used or if an overflow occurs. |
Remarks
The function only works with numbers that fit in a 32 bit signed integer (-2147483648 to 2147483647)
Related
Hex
Example
$dec = Dec("FFFF") ;returns the number 65536