I am working on a JS project and i have the following problem:
My input number goes from 0 to 10. (it can be 1, 2, 3.4, 5,9, etc..)
The expected output would be something out of 5 with only one lowered down decimal.
Examples:
9.7 / 10 would give 4.85 / 5 , the output has to be 4.8 (keep only one lowered down digit)
4.9 / 10 would give 2.45 / 5, the output has to be 2.4 (keep only one lowered down digit)
Thanks for your help.
Regards