When I execute the JavaScript code 8/(3-8/3)
, the result is displayed as 23.99999999999999
, but I want to fix it to 24
.
In order not to round numbers when they are not repeating decimals or when their repetend is not 9 (e.g. do not round 21.835
to 22
; do not round 2.979797979797
to 3
), how should I solve this problem?