Rounding or Dollar Format in Arcade

226
3
Jump to solution
09-25-2019 02:16 PM
Highlighted
MVP Regular Contributor

Does arcade support rounding of decimal numbers or applying a money format? Right now Arcade is spitting out 6.2568 for example but I only want to see 6.26

Thanks

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Esteemed Contributor

Hi Joerodney ,

In addition to the solution provided by Jeff Ward you can also use the Text function to format a value:

Text($feature.fieldname, "$ #.00")

View solution in original post

3 Replies
Highlighted
Regular Contributor II

What if you tried

"$" + Round($feature.fieldname, 2)

Mathematical Functions | ArcGIS for Developers 

Jeff Ward
Summit County, Utah
Highlighted
Esri Esteemed Contributor

Hi Joerodney ,

In addition to the solution provided by Jeff Ward you can also use the Text function to format a value:

Text($feature.fieldname, "$ #.00")

View solution in original post

Highlighted
MVP Regular Contributor

Perfect!

Reply
0 Kudos