Hi everyone and thanks in advance for your help...this is my first time in this forrum...
I'm having a hard time using the the floor operator to calculate grades and, even though I made some research, I couldn't get the answer of my problem,
Let me show you the issue using a numeric example:
Say x = ( item1 * 4 / 100 ) + 1
If item1 = 90.00000, then...
floor(x) = 4.00000 (check)
x - floor(x) = 0.60000 (check)
(x - floor(x)) * 10 = 6.00000 (check)
floor((x - floor(x)) * 10) = 5.00000 (???...I was expecting 6.00000)
Am I doing something wrong?
I'm using Moodle 3.10.1+ Build 20210122
I appreciate your help and guidance.
Best Regards for all