79591231

Date: 2025-04-24 18:12:56
Score: 1
Natty:
Report link

a simple solution without casting to float or anything fancy: if you want to divide integers like this:

result=a/b

instead do this:

result=(a+b/2)/b

both divisions in this formula will round down, but that's ok - you will get mathematically correct result

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Artur