HubSpot / odometer

Smoothly transitions numbers with ease. #hubspot-open-source
http://github.hubspot.com/odometer/docs/welcome
MIT License
7.3k stars 712 forks source link

Format - 3 digits after period #158

Open zerowebcorp opened 6 years ago

zerowebcorp commented 6 years ago

format: '(,ddd).ddd' This doesn't work at the moment. I would like to show the numbers as 12.235 however it trims at 12.23 by default and I have no way of changing it

JSFiddle http://jsfiddle.net/rx6BQ/13661/

How to get it working?

sn8to commented 6 years ago

I played with the options and noticed that the format option was being ignored for some reason. I'll do more experimentations and see why this is happening.

wqzwh commented 5 years ago

Added manual initialization method,look this

https://github.com/wqzwh/odometer