Login
Plus/4 EncyclopediaFirstBackNextLast

DEC Function
Category
Reference/Commodore BASIC V3.5

Topic
DEC(hexidecimal string)

This function returns a numeric value.

This function returns the DECimal value of a hexidecimal string, which must be between $0-$FFFF (0-65535). This is the opposite of the HEX$ function.

If the hexidecimal number is outside this range, or if the string contains non-hexidecimal characters, an ?ILLEGAL QUANTITY ERROR occurs.

Abbreviation
None



Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon