I have had no end of drama with the ROUND Function.
I am convinced it does not always work correctly.
In my mind if I want ROUND(x,1) then the result should ALWAYS ... and I mean ALWAYS have 1 Decimal place....
Not like this nonsense...
[3.1,0.4,0.30000000000000004,0.8,-0.6000000000000001,0.7000000000000001,-0.1,0.4,-0.1,0.1,-3.4000000000000004,-4.1000000000000005,-2.2,-1.5,-4.1000000000000005,0.2,-1.4000000000000001,-0.6000000000000001,-2.8000000000000003,0.0,0.5,0.9,0.30000000000000004,-1.8,0.1,0.1]
Regardless of all the nonsense about roundin up, down and inside out.... I think the only way to get this right is to add an Option Truncate Flag to the ROUND function.....
So....
ROUND(X,1) might return 4.1000000000000005
But set the option Truncate Flag as the 3rd Parameter....
ROUND(X,1,1) will return 4.1
This would fix it once and for all.
I cannot count the hours and hours I have spent manipulating values needlessly trying to get the ROUND to work.... And have not always been successful... like the last 7 hours today 🙁
I have 2 Series in a Chart.......
Resolved the first by ROUND to zero after multiplying by 10 and then dividing by 10
ROUND ( SUM Trip.DeltaMinutesArrive WHERE (Trip.TripStatus='ARRIVED' AND Trip.YearWeek = 1 AND Trip.Year =YEAR(CURRENT_DATE)) / 60 *10 , 0) / 10
But that does not always work... like in the second series which I am still trying to solve.
Irritating!!!