Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed precision for average #190
I saw the average formatter lets you specify precision when the number gets rounded up, but I have commonly had the use case where I want a fixed precision of 3 digits no matter what the number was and whether it was rounded or not.
So numbro(12345).format('3a') would give 12.3k instead of currently 12k