FROMHEX

Syntax

FROMHEX (number)

Description

Converts a hexadecimal string to an Int64.

Arguments

number Hexadecimal string to convert.

Returns

Returns an Int64.

Remarks

If number is not a valid hexadecimal string, FROMHEX returns a record error.

The maximum hexadecimal value is 0x7FFFFFFFFFFFFFFF which is 9,223,372,036,854,775,807. This is an Int64.

The minimum hexadecimal value is 0x8000000000000000 which is -9,223,372,036,854,775,808.

Valid hexadecimal strings can be prefixed with 0x or nothing, such as 0x7FFFFFF or 7FFFFFF.

Example

FROMHEX ( "A5" ) 

Returns: 165

FROMHEX ( "7FFFF" ) 

Returns: 524287

FROMHEX ( "3DA408B9" ) 

Returns: 1034160313

Related Topics

Data Conversion

TOHEX