I have a number 57229535 in a div with the class name counter. If I type numeral(document.getElementsByClassName("counter")[0].getAttribute("data-value")).format('0.0');, I was expecting to see 57.229.535 but see 57229535.0 instead. If I use .format('0,0'), it renders correctly.
Description
I have a number 57229535 in a div with the class name counter. If I type
numeral(document.getElementsByClassName("counter")[0].getAttribute("data-value")).format('0.0');
, I was expecting to see57.229.535
but see57229535.0
instead. If I use.format('0,0')
, it renders correctly.