How to change the number of decimal places of Shape.STLength() shown in report
I have successfully been able to show the Shape.STLength() in a custom report I am generating. The data is bound to a subreport which is then referenced in the final report. The output of the report shows the data from the Shape.STLength() field, but this data is only shown to the decimal point (such as 211.--Yes, the decimal point shows, but nothing after it).
How do I control the display of this data field in my report/subreport? I want to show at least 2 decimal places for this field.
Thanks for any help beforehand,
Michael
0
-
Hi Michael,
It's a bit hard to know exactly what's going on here but I suspect that the Shape.STLength() field is getting converted to a string type by some operation and that's what truncates the value.
If it were becoming an integer it would lose the decimal point.
If you are doing any sort of DataTable manipulation, please be sure that you are also setting the column type of any new columns you create. Otherwise, please open a Support case with your report/workflow and we will assist you with this.
Regards,
-Malcolm0 -
Did you get any assistance with this? I'm trying to add values from a FeatureSet to a report using a DataTable into a dataset. When I reference the field with the values, I'm getting the same... Decimal with no decimal values. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer