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.

I found just one way how to force component to use Integer not Decimal and it is to set decimalSeparator="". I think it’ll be more intuitive to use something like decimalPrecision={0}, but in that case I had 0.undefined written in field. Is it possible to fix it, or explain some better way how to do it?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

11reactions
crpereztcommented, Oct 19, 2020

Solution is now decimalScale=0 for those stumbling into this problem.

6reactions
s-yadavcommented, May 16, 2017

set decimalSeparator = {false}

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does “round to zero decimal places” mean? - Quora
Zero decimal places means you don't want to see anything after the decimal point. So you're rounding to the nearest whole number.
Read more >
The most common form of scientific notation inserts a decimal ...
The number 403,000 has no decimal places. The three significant digits are 4, 0, 3. In scientific notation, it would be written 4.03...
Read more >
Round a number to the decimal places I want - Microsoft Support
Round a number to the decimal places you want by using formatting and how to use the ROUND function in a formula to...
Read more >
Decimal place value review (article) - Khan Academy
Decimal place value ... The first digit after the decimal represents the tenths place. The next digit after the decimal represents the hundredths...
Read more >
Place Values After the Decimal Point
Rounding and Decimals: Place Values After the Decimal Point. Just like each digit in a whole number, each digit behind the decimal point...
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