kvz/phpjs — pull request #61 by evgenius (2012-12-20 12:53:26+00:00)
Title: money_format works incorrectly for fractions < 0.1

Hello,

money_format works incorrectly for fractions < 0.1

For instance, for frac_digits=2 the function returned:
money_format("%!i", 31.011); // 31.1
money_format("%!i", 31.01); // 31.01
money_format("%!i", 31.009); // 31.1