Module numeric

Module numeric 

Source
Expand description

Numeric string helpers. Pan numeric string helpers.

Enums§

RadixSpec
Radix selection for base conversion.
RadixStrInput
Input for radixstr, either a number or raw bytes.
RadixValue
Output of radix, either a number or raw binary bytes.

Functions§

asc
Returns the MacRoman code point for a single-character string.
bytepattern
Formats a byte count using decimal SI units.
chr
Converts a MacRoman code point into a string.
commastr
Formats an integer with grouping commas.
dollarsandcents
Formats a number as words like “One dollar and 05 cents”.
exportcell
Formats a value using its Display implementation.
hex
Parses a hexadecimal string into a number.
hexbyte
Formats a byte as two uppercase hex digits.
hexlong
Formats a 32-bit number as eight uppercase hex digits.
hexstr
Formats a number as an uppercase hex string, padded to 8 chars.
hexword
Formats a 16-bit number as four uppercase hex digits.
money
Formats a number as dollars and cents with grouping commas.
nth
Formats an ordinal number (e.g. 1st, 2nd).
places
Formats number with a fixed number of decimal places.
radix
Parses text in the given radix.
radixstr
Formats a number or raw bytes in the given radix.
scientificnotation
Formats number using scientific notation with 3 decimals.
str_
Formats number without trailing decimal zeros.
val
Parses leading decimal digits into an integer.