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
Hi Joerodney ,
In addition to the solution provided by Jeff Ward you can also use the Text function to format a value:
<SPAN class="token function">Text</SPAN><SPAN class="punctuation token">(</SPAN>$feature<SPAN class="punctuation token">.</SPAN>fieldname<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"$ #.00"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
What if you tried
"$" + Round($feature.fieldname, 2)
Mathematical Functions | ArcGIS for Developers
Perfect!
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.