srexi / purecounterjs

A simple yet configurable native javascript counter which you can count on.
MIT License
122 stars 48 forks source link

Numbers with a comma #4

Closed timrj closed 3 years ago

timrj commented 4 years ago

Hi, is there a way to display numbers with a comma, but no decimals?

Desired result: 10,000

without data-purecounter-decimals > 10000

data-purecounter-decimals="1" > 10,000.0 (closest to desired result)

data-purecounter-decimals="0" > 10000

Thanks.

srexi commented 4 years ago

Yes good idea @timrj

timrj commented 4 years ago

Thank you - I feel like data-purecounter-decimals="0" should make this outcome and "none" / "false" should be the default.

Cheers for the quick response.

rzlnhd commented 3 years ago

This issue already fixed.