question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Edge show fraction digits even if i don't want it

See original GitHub issue
new Intl.NumberFormat('fr-CA', { style: 'currency', currency: 'CAD', useGrouping: true, minimumIntegerDigits: 1, minimumFractionDigits: 0, maximumFractionDigits: 0})

Result in IE (11): image

Result in Edge (18): image

Result in Chrome (70): image

Result in Firefox (nightly 65): image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
jefgencommented, Nov 29, 2018

Thanks! So the snippet should probably look something like this: new Intl.NumberFormat('fr-CA', { style: 'currency', currency: 'CAD', useGrouping: true, minimumIntegerDigits: 1, minimumFractionDigits: 0, maximumFractionDigits: 0}).format(25000);

0reactions
wyrichtecommented, Nov 29, 2018

This bug is similar to #5842. This is not a Chakra bug but rather an ICU bug. It will be fixed in an upcoming version of Windows. Thanks for the report!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Edge show fraction digits even if i don't want it #5845 - GitHub
This bug is similar to #5842. This is not a Chakra bug but rather an ICU bug. It will be fixed in an...
Read more >
Display numbers as fractions - Microsoft Support
Use the Fraction format to display or type numbers as actual fractions, rather than decimals. Select the cells that you want to format....
Read more >
Decimals versus fractions - Siemens Communities
Can Solid Edge even display in fractions? ... If I want to display 5 digits vs. however many digits are the precision in...
Read more >
How to Stop Excel from Rounding Numbers (Decimals ...
How to Stop Excel from Rounding Numbers (Decimals/Fractions) ... If you don't want these, click on to Decrease decimal icon in the ribbon...
Read more >
Intl.NumberFormat() constructor - JavaScript - MDN Web Docs
"always" : display grouping separators even if the locale prefers ... will be resolved if both "FractionDigits" ( minimumFractionDigits ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found