number format issue outStatisticField in feature layer query

431
1
11-30-2020 12:37 PM
Labels (1)
NiuZheng
New Contributor

Hi  

is there any way to format the decimal places of number of outStatisticField in following query? 

 

 Order By Fields:SUM_MEAN_MEAN_Delay DESC
 Group By Fields (For Statistics):FIRST_Street
 Output Statistics:[
{
"statisticType": "sum",
"onStatisticField": "MAX_MAX_Delay",
"outStatisticFieldName": "SUM_MEAN_MEAN_Delay"
}
]

 

result 

SUM_MEAN_MEAN_Delay: 1527.09699999989
FIRST_Street: Hwy 7

SUM_MEAN_MEAN_Delay: 768.143999999995
FIRST_Street: Hwy 401 E

SUM_MEAN_MEAN_Delay: 579.484999999999
FIRST_Street: Hwy 401 Collector W

SUM_MEAN_MEAN_Delay: 562.704999999997
FIRST_Street: Hwy 401 Express E

if I want to format the return value as #,###.00

how to do it? so far, there is no explanation found from REST API help

 

Thanks alot

 

https://services.arcgis.com/6iGx1Dq91oKtcE7x/ArcGIS/rest/services/congestion_summary/FeatureServer/1...

 

 

 

 

0 Kudos
1 Reply
NiuZheng
New Contributor

this issue was solved see here https://github.com/Esri/cedar/issues/477

0 Kudos