@technobuddha > library > Math
Verbalization
| Name | Type | Description |
|---|---|---|
| binaryUnits | Function | Abbreviate a binary number by adding a suffix for metric units (i.e. 1024 => 1KiB) |
| BinaryUnitsOptions | Type | Options for the binaryUnits function |
| cardinal | Function | Convert a number into text (the cardinal number) |
| CardinalOptions | Type | Configuration options for cardinal number conversion. |
| formatNumber | Function | Formats a number according to the specified mask. |
| fraction | Function | Converts a numeric input into a formatted fraction string, either in numeric or alphabetic form. |
| FractionOptions | Type | Options for customizing the output and behavior of fraction number representations. |
| metricUnits | Function | Abbreviate a number by adding a suffix for metric units (i.e. 1000 => 1K, .0001 = 1m) |
| MetricUnitsOptions | Type | Options for the metricUnits function w |
| Numbering | Type | Options for controlling how numbers are converted to words or symbols. |
| orderOfMagnitude | Function | Get the spelled out word for an exponent |
| ordinal | Function | Convert a number into an ordinal number string (1st, 2nd, 3rd, etc). |
| OrdinalOptions | Type | Options for formatting ordinal numbers. |
| pad | Function | Add leading zeros to a number to ensure a string of a minimum length |
| summarize | Function | Get a short description of a number |