m1maker / NGT

New open source game toolkit
https://ngtcode.dev/
20 stars 11 forks source link

more fixes of round function, corrected the how the function should be behaved #33

Closed harrymkt closed 5 months ago

harrymkt commented 5 months ago

this has already been tested with builds. the previous round function is honestly incorrect, so I fixed it here. and yet the function sometimes goes -0, but it is better than the current incorrect function. so, -0 problem is not a huge bug and could be fixed later. the only thing is to get correct functions. previous decreases the number of decimals, the current committed function fixes the issue. the round function is not suppose to strictly decrease its decimals.…e behaved

this has already been tested with builds. the previous round function is honestly incorrect, so I fixed it here. and yet the function sometimes goes -0, but it is better than the current incorrect function. so, -0 problem is not a huge bug and could be fixed later. the only thing is to get correct functions. previous decreases the number of decimals, the current commited function fixes the issue. the round function is not suppose to strictly decrease its decimals.