I am trying to use the helper in a partial, but if we pass a value such as 100.00 to the helper, we are given a value of $100 when it should be $100.00. How do I fix this? If I have a non-zero value in the decimal places, ie: 100.30 there is no problem, the value is formatted correctly. I have tried setting the locales explicitly and ensured that a float not an integer is being passed to the helper (although, this should probably work with an integer as well.
I am trying to use the helper in a partial, but if we pass a value such as
100.00
to the helper, we are given a value of$100
when it should be$100.00
. How do I fix this? If I have a non-zero value in the decimal places, ie:100.30
there is no problem, the value is formatted correctly. I have tried setting the locales explicitly and ensured that a float not an integer is being passed to the helper (although, this should probably work with an integer as well.Please advise.