[CI Skip] 0.28.4

This commit is contained in:
Travis CI
2019-02-27 10:22:45 +00:00
parent 28b991d61d
commit b74f8de6ff
202 changed files with 6646 additions and 8 deletions
+28
View File
@@ -0,0 +1,28 @@
@polkadot/ui-util
=================
Various utility and formatting functions
formatBalance
-------------
```js
const props = await api.rpc.system.properties();
formatBalance.setDefaults({
decimals: props.tokenDecimals,
unit: props.tokenSymbol
});
formatBalance('12345'); // 12.345z DOT
```
calcSi
------
```js
// calculates the SI unit applicable
formatBalance.calcSi('12345'); // { power: 3, value: 'k', text: 'Kilo' }
```