jquery-sprintf
jquery-sprintf copied to clipboard
Handling correctly %0.0f
The schema "%0.0f" is not handled correctly
The switch case on line 170 should check if flags['precision'] is undefined or it will always use 6 ( instead of the 0 ) to decide how manu decimal number show.
Example: var digits = typeof flags['precision'] != 'undefined' ? flags['precision'] : 6;