Decimal places in the Currency type field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2015 09:33 PM
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.
- Labels:
-
Ask the Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2015 02:19 PM
try using variable = variable.toFixed(0) or convert it to a string and remove anything after the decimal as well as the decimal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2015 01:45 AM
Hi,
Did you get this working in the end?
Thanks,
Katie