Skip to content
Commits on Source (2)
{
"name": "i4-js-commons",
"version": "3.8.1",
"version": "3.8.2",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "i4-js-commons",
"version": "3.8.1",
"version": "3.8.2",
"description": "Just a load of common stuff for i4 front-ends and some probably usable in back-end as well",
"dependencies": {
"@material-ui/core": "^4.7.2",
......
......@@ -78,7 +78,7 @@ export const prettifyNumberWithOptions = ({
export const prettifyNumber = prettifyNumberWithOptions({
// ltOnePrecision: 1,
precision: x => (between(-1, 1, x) ? 3 : between(-10, 10, x) ? 4 : 5),
precision: x => (between(-1, 1)(x) ? 3 : between(-10, 10)(x) ? 4 : 5),
// precision: x => (x >= 100 || x <= -100 ? 5 : 3),
// decimals: x => (x >= 100 || x <= -100 ? 0 : 1),
});
......