I posted in ArcGIS Pro but I think I saw a few post similar questions on here. So I apologize if this isnt the correct place.
I need help converting VBScript into Arcade. This is the VBscript: Round (UTC_Pct, 0) & "%"
Anyone know how I can convert that into Arcade?
SJ
Solved! Go to Solution.
As stated above Round is pretty straight forward, just have to access the attribute from the features with something like: Round($feature.UTC_Pct,0). To get the "%" at the end use the Concatenate function.
ex. Concatenate(Round($feature.UTC_Pct,0),"%")
Not sure what your ':' section means (maybe format into code style), but Round is pretty simple: https://developers.arcgis.com/arcade/function-reference/math_functions/#round
Thank you!
As stated above Round is pretty straight forward, just have to access the attribute from the features with something like: Round($feature.UTC_Pct,0). To get the "%" at the end use the Concatenate function.
ex. Concatenate(Round($feature.UTC_Pct,0),"%")
Thank you! I'll give that a shot.
Since the default value for Round's number of places is 0, you don't need to add that to your expression.
You can also use template literals in your expression to easily add extra text.
`${Round($feature.UTC_Pct)}%`