integer to/from string conversion functions are provided in the libraries
LIB/str_byte_lib.bas
LIB/str_int_lib.bas
LIB/str_long_lib.bas
|
byte_to_str
|
convert 8 bit binary integer value to ASCII decimal string equivalent
(leading zeros are omitted)
|
int_to_str
|
convert 16 bit binary integer value to ASCII decimal string equivalent
(leading zeros are omitted)
|
long_to_str
|
convert 32 bit binary integer value to ASCII decimal string equivalent
(leading zeros are omitted)
|
byte_to_str_pad
|
convert 8 bit binary integer value to ASCII decimal string equivalent
(with field padding)
|
int_to_str_pad
|
convert 16 bit binary integer value to ASCII decimal string equivalent
(with field padding)
|
long_to_str_pad
|
convert 32 bit binary integer value to ASCII decimal string equivalent
(with field padding)
|
byte_to_str_lz
|
convert 8 bit binary integer value to ASCII decimal string equivalent
(with leading zeros)
|
int_to_str_lz
|
convert 16 bit binary integer value to ASCII decimal string equivalent
(with leading zeros)
|
long_to_str_lz
|
convert 32 bit binary integer value to ASCII decimal string equivalent
(with leading zeros)
|
byte_to_hex
|
convert 8 bit binary integer value to ASCII hex string equivalent
leading zeros are omitted
|
int_to_hex_str
|
convert 16 bit binary integer value to ASCII hex string equivalent
leading zeros are omitted
|
long_to_hex_str
|
convert 32 bit binary integer value to ASCII hex string equivalent
leading zeros are omitted
|
int_to_hex
|
convert 16 bit binary integer value to ASCII hex string equivalent
leading zeros are NOT omitted
|
long_to_hex
|
convert 32 bit binary integer value to ASCII hex string equivalent
leading zeros are NOT omitted
|
hex_nibble_to_byte
|
convert ASCII hex character to equivalent 4 bit binary integer value
|
hex_str_to_byte
|
convert ASCII hex string to equivalent 8 bit binary integer value
the string must be NUL terminated and only the least significand
8 bits of the result are retained
|
hex_str_to_int
|
convert ASCII hex string to equivalent 16 bit binary integer value
the string must be NUL terminated and only the least significand
16 bits of the result are retained
|
hex_str_to_long
|
convert ASCII hex string to equivalent 32 bit binary integer value
the string must be NUL terminated and only the least significand
32 bits of the result are retained
|
hex_to_byte
|
convert ASCII hex string to equivalent 8 bit binary integer value
Only the first 2 characters of the string are interpreted
|
hex_to_int
|
convert ASCII hex string to equivalent 16 bit binary integer value
Only the first 4 characters of the string are interpreted
|
hex_to_long
|
convert ASCII hex string to equivalent 16 bit binary integer value
Only the first 4 characters of the string are interpreted
|
str_to_byte
|
convert ASCII decimal string to equivalent 8 bit binary integer value
the string must be NUL terminated and only the least significand
8 bits of the result are retained
|
str_to_int
|
convert ASCII decimal string to equivalent 8 bit binary integer value
the string must be NUL terminated and only the least significand
32 bits of the result are retained
|
str_to_long
|
convert ASCII decimal string to equivalent 8 bit binary integer value
the string must be NUL terminated and only the least significand
32 bits of the result are retained
|