I’m not able to find the exact format to round numbers (no digits after the decimal) in Numbro with the old format (v1).
Found a Github issue that looks like it’s the same question, but haven’t been able to find any other resource.
Using the try me from Numbro, I would want 12345.67 to be formatted as 12346 (rounding to 0 digits after the decimal). 0.0
, 0.
, 0[.]
and similar variants don’t work
Question posted in Javascript
A very good W3school tutorial can be found here.
A very good W3school tutorial can be found here.
2
Answers
use parseInt()
it will parse all value to integer
reference https://www.w3schools.com/jsref/jsref_parseint.asp
Use
Math.round()
: