inorganik / countUp.js

Animates a numerical value by counting to it
https://inorganik.github.io/countUp.js
MIT License
8.03k stars 1.38k forks source link

numeral doesn't respect .format('0.0') #208

Closed kartagis closed 5 years ago

kartagis commented 5 years ago
[x] Bug
[ ] Feature request

CountUp.js version:
2.0.6

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 see 57.229.535 but see 57229535.0 instead. If I use .format('0,0'), it renders correctly.

kartagis commented 5 years ago

Sorry, wrong project.