- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
So I have a crazy situation.
I'm trying to create a field with area value of a polyline in meters with two decimals, rounded down.
The value should match the one written in properties with LUPREC=4, as an external inspector checks the field to match properties (cutting off the unnecessary digits, hence round down).
I've used TRUNC function and everything was great.
For example 11577880.1183 in properties shows in field 115.77 m
Until I stumbled onto polyline that shows 1328100 in properties but field shows 132.80. I saw that internal value of area was 1328099.99998. The properties window rounds it, but TRUNC function just cuts off after 5th digit.
I tried rounding the number and thus cutting off all decimals, before truncating it at, but then problem with values like 123199.8563, which in field shows 123.20.
The SOLUTION that I thought of would be to round the number after 4th decimal but I can't get it to work in FIELDS.
Neither multiplying by 10000 works, nor setting the decimal at which to round.
Another idea is somehow to use the area field inside formula with precision of 0.0000, which i can't achieve either. Formula fields seem to use the internal value, disregarding set precisions.
Anyone can think of a solution or help me achieve mine?
The solution must be within the field expression, as I need the values to update with Polyline.
Thank you!!
Solved! Go to Solution.