Fixed incorrect fraction formatting in money_format
Fixed incorrect fraction formatting in money_format

The function worked incorrectly when the length of the fraction was less than frac_digits.

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

J2TeaM/phpjs,J2TeaM/phpjs,w35l3y/phpjs,strrife/phpjs,Mazbaul/phpjs,mojaray2k/phpjs,FlorinDragotaExpertvision/phpjs,Mazbaul/phpjs,janschoenherr/phpjs,janschoenherr/phpjs,MartinReidy/phpjs,ajenkul/phpjs,FlorinDragotaExpertvision/phpjs,praveenscience/phpjs,w35l3y/phpjs,J2TeaM/phpjs,imshibaji/phpjs,cigraphics/phpjs,davidgruebl/phpjs,MartinReidy/phpjs,FlorinDragotaExpertvision/phpjs,FlorinDragotaExpertvision/phpjs,VicAMMON/phpjs,kvz/phpjs,strrife/phpjs,w35l3y/phpjs,hirak/phpjs,mojaray2k/phpjs,revanthpobala/phpjs,kvz/phpjs,janschoenherr/phpjs,Mazbaul/phpjs,VicAMMON/phpjs,chand3040/phpjs,davidgruebl/phpjs,strrife/phpjs,w35l3y/phpjs,praveenscience/phpjs,strrife/phpjs,J2TeaM/phpjs,hirak/phpjs,kvz/phpjs,imshibaji/phpjs,cigraphics/phpjs,ajenkul/phpjs,ajenkul/phpjs,janschoenherr/phpjs,cigraphics/phpjs,davidgruebl/phpjs,davidgruebl/phpjs,cigraphics/phpjs,praveenscience/phpjs,chand3040/phpjs,imshibaji/phpjs,kvz/phpjs,praveenscience/phpjs,revanthpobala/phpjs,MartinReidy/phpjs,VicAMMON/phpjs,VicAMMON/phpjs,mojaray2k/phpjs,chand3040/phpjs,ajenkul/phpjs,mojaray2k/phpjs,hirak/phpjs,revanthpobala/phpjs,hirak/phpjs,imshibaji/phpjs,Mazbaul/phpjs,revanthpobala/phpjs,MartinReidy/phpjs