Decimal places in the Currency type field

jatinrajpal
Kilo Explorer

I am trying to reduce the number of decimal places for a field of type 'currency' to 0 so that there are no decimal values and can't figure out a way to do so. I've tried searching for a 'scale' attribute and found none. Also, I don't see a max length attribute as well.

I am using the currency type for my fields primarily due to reporting needs of showing the '$' sign on the dashboard for there cost fields. Would appreciate it if anyone could help out.

2 REPLIES 2

bammar
Kilo Sage
Kilo Sage

try using   variable = variable.toFixed(0)   or convert it to a string and remove anything after the decimal as well as the decimal.


minicj
Giga Contributor

Hi,



Did you get this working in the end?



Thanks,



Katie