String pattern formatting options? #76
leemcmullen
started this conversation in
Ideas
Replies: 1 comment
-
Hi 👋, thanks for the discussion. Is there a certain format you had in mind that Intl.NumberFormat can't handle? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey 👋 This is an awesome lib ❤️
I wondered if there's support in the pipeline for configuring formatting via string pattern options, similar to what you get with libs like numerable?
E.g. if my number is 4,558,667,268.98 then I'd love numberflow to be able to output 4.56 B like this:<NumberFlow value={bigNumber} format={'0.00 a'} />
. I don't think that's possible out of the box in a simple fashion at the moment.Ignore this example, I think that's possible using
{notation: 'compact'}
, but I suppose the question still stands. I think it would still be really useful to be able to provide string formatting options instead of the Intl.NumberFormat() options 👍Beta Was this translation helpful? Give feedback.
All reactions