Rounding or Dollar Format in Arcade

3533
3
Jump to solution
09-25-2019 02:16 PM
joerodmey
MVP Alum

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

0 Kudos
1 Solution

Accepted Solutions
XanderBakker
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
JeffWard
Honored Contributor

What if you tried

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

Mathematical Functions | ArcGIS for Developers 

Jeff Ward
Summit County, Utah
XanderBakker
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")
joerodmey
MVP Alum

Perfect!

0 Kudos