You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to specify a maximum number of significant digits for a number, so that I may better estimate how much space to allocate in design. Currently I may only specify precision and control decimals.
Currently:
millify(123456, {precision: 2}) returns 123.45K
Proposed:
millify(123456, {digits: 3}) returns 123K
millify(1234, {digits: 3}) returns 1.23K.
I'm willing to work on a patch if this is in scope for millify.
The text was updated successfully, but these errors were encountered:
I would like to specify a maximum number of significant digits for a number, so that I may better estimate how much space to allocate in design. Currently I may only specify
precision
and control decimals.Currently:
millify(123456, {precision: 2})
returns123.45K
Proposed:
millify(123456, {digits: 3})
returns123K
millify(1234, {digits: 3})
returns1.23K
.I'm willing to work on a patch if this is in scope for millify.
The text was updated successfully, but these errors were encountered: