flaviosilveira/Jquery-Price-Format — pull request #4 by tiagolupepic (2011-12-16 21:36:39+00:00)
Title: Round string before format and ajust zeros after the decimal

Hi,

I made this pull request after some troubles with Rails applications, in Rails some fields use format like '54.0' with centsLimit = 2 and using priceFormat, value was formatted to 'R$ 540,00', the correct is 'R$ 54,00'.
Other issue is values with decimal is greater than centsLimit ex:
$('field').priceFormat({
centsLimit = 2
});
input value 31.3182
formatted value will be 'R$ 3.131,82' the correct was 'R$ 31,32'