Convert a number into its postfixed si name equivalent based on the selected scale.
e.g. 1000 becomes 1k
import * as si from "si-postfix";
const text = si.postfix(1000)
console.log(text) // ==> "1k"
While the task seems trivial, long and short scales are two of several naming systems for integer powers of ten which use some of the same terms with different magnitudes.
See the names of large numbers on Wikipedia for more details.