leantime icon indicating copy to clipboard operation
leantime copied to clipboard

Report page: Floating point precision problems

Open Stroopwafe1 opened this issue 4 years ago • 0 comments

As the title states, there is a floating point precision problem when you go to the reports page (See screenshot below) The project that 4 stories that don't all round up nicely, and thus create the reports with the hours go out of bounds.

This seems like a simple fix to just round the final sum with 2 decimals, either in the SQL or in the template.

[Edit] Environment: Docker-leantime + mysql image

ID Date Hours Plan Hours Difference
#1 - Edit 03/22/2022 0.53 0.25 -0.28
#2 - Edit 03/22/2022 0.11 0.11 0  
#3 - Edit 03/22/2022 2.47 2 -0.47
#4 - Edit 03/22/2022 3.34 3 -0.34

image

Stroopwafe1 avatar Mar 23 '22 18:03 Stroopwafe1