si-postfix
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

SI Postfix

Convert a number into its postfixed si name equivalent based on the selected scale.

e.g. 1000 becomes 1k

Usage

import * as si from "si-postfix";

const text = si.postfix(1000)

console.log(text) // ==> "1k"

Names of large numbers

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.

Readme

Keywords

Package Sidebar

Install

npm i si-postfix

Weekly Downloads

34

Version

1.0.11

License

ISC

Unpacked Size

4.42 kB

Total Files

6

Last publish

Collaborators

  • aphex3k