【文件属性】:
文件名称:format-si-prefix:使用SI前缀格式化和取消格式化数字
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-28 14:00:54
JavaScript
格式前缀
格式化和取消格式化带有SI前缀的数字。
原料药
formatSI()
import { formatSI } from 'format-si-prefix' ;
const string = formatSI ( number ) ;
在
出去
...
...
0.000111111
111µ
0.00111
1.11百万
0.0111
11.1m
0.111
111m
1个
1个
11
11
111
111
1111
1.11千
11111
11.1千
111111
111k
1111111
110万
...
...
unformatSI()
import { unformatSI } from 'format-si-prefix' ;
const number = unformatSI ( string ) ;
在
出去
.
【文件预览】:
format-si-prefix-master
----.eslintrc(30B)
----deploy.sh(222B)
----src()
--------__tests__()
--------index.js(1KB)
----.babelrc(35B)
----.npmignore(22B)
----.travis.yml(141B)
----LICENSE(1KB)
----README.md(2KB)
----.editorconfig(197B)
----.gitignore(552B)
----test-setup.js(199B)
----.eslintignore(13B)
----package.json(1KB)