Number utilities

Changes are now logged in the ChangeLog file.

commaint  -  Insert commas between each thousand in an integer.
divisors  -  All all possible divisors.
fixdec  -  Round towards zero with a specified number of decimals.
fixdig  -  Round towards zero with a specified number of digits.
hex_to_int16  -  Convert hexadecimal string to int16 number.
hex_to_int32  -  Convert hexadecimal string to int32 number.
hex_to_int8  -  Convert hexadecimal string to int8 number.
hex_to_uint16  -  Convert hexadecimal string to uint16 number.
hex_to_uint32  -  Convert hexadecimal string to uint32 number.
hex_to_uint64  -  Convert hexadecimal string to uint64 number.
hex_to_uint8  -  Convert hexadecimal string to uint8 number.
int16_to_hex  -  Convert int16 number to hexadecimal string.
int2digits  -  Split an integer into digits.
int32_to_hex  -  Convert int32 number to hexadecimal string.
int8_to_hex  -  Convert int8 number to hexadecimal string.
nextpow  -  Nextious power.
nextpowof10  -  Next power of 10.
nextpowof2  -  Next power of 2.
numlexcmp  -  Lexicographic comparison of two numbers.
numlexeq  -  Lexicographic equal to.
numlexge  -  Lexicographic greater than or equal to.
numlexgt  -  Lexicographic greater than.
numlexle  -  Lexicographic less than or equal to.
numlexlt  -  Lexicographic less than.
numlexne  -  Lexicographic not equal to.
prevpow  -  Previous power.
prevpowof10  -  Previous power of 10.
prevpowof2  -  Previous power of 2.
qnan  -  Return a quiet (non-trapping) NaN.
real48_as_double_to_uint8  -  Convert doubles to Borland 6 byte reals (Real48).
real48_as_uint8_to_double  -  Convert Borland 6 byte reals (Real48) to doubles.
rounddec  -  Round to a specified number of decimals.
rounddig  -  Round to a specified number of digits.
roundeven  -  Round towards nearest integer (pick even in .5 cases)
single_as_uint16_to_double  -  Convert single precision numbers to double.
single_as_uint32_to_double  -  Convert single precision numbers to double.
single_as_uint8_to_double  -  Convert single precision numbers to double.
truncdec  -  Truncate to a specified number of decimals.
truncdig  -  Truncate to a specified number of digits.
uint16_to_hex  -  Convert uint16 number to hexadecimal string.
uint32_to_hex  -  Convert uint32 number to hexadecimal string.
uint64_to_hex  -  Convert uint64 number to hexadecimal string.
uint8_to_hex  -  Convert uint8 number to hexadecimal string.
unpacknum  -  Unpack number into fraction and exponent.

Valid XHTML 1.0! Valid CSS! Most recently modified 2010-01-21 17:33:19 +01:00
Peter John Acklam (pjacklam@online.no)