Select to view content in your preferred language

Format float in hosted feature

418
3
09-03-2024 08:00 AM
SanchezNuñez
Frequent Contributor

Good morning,

Is there a way I can format a float field in a hosted feature to show only 2 decimals?

Thanks

0 Kudos
3 Replies
TonyContreras_Frisco_TX
Frequent Contributor

You can use Arcade functions to process the source data so that they display the way you want. In this case, it is easy enough to use the Round Function, specifying the number of decimals desired to display. This will not change it in the source, as the precision of the data type cannot be modified.

0 Kudos
DanielFox1
Esri Contributor

Hi @SanchezNuñez I think this will depend on how you create the layer, In ArcGIS Pro you should be able to configure this in the feature layer but as suggested above I would use the Round Function to achieve this further.

0 Kudos
SanchezNuñez
Frequent Contributor

Hi @DanielFox1   and @TonyContreras_Frisco_TX ,

I downloaded the hosted feature layer in a FGDB, and I was able to format the field in ArcGIS Pro, then I published the layer, overwriting the existing hosted feature layer.

Thanks

0 Kudos