79439581

Date: 2025-02-14 13:54:49
Score: 1.5
Natty:
Report link

I'd say:

double result = (x % 1 < 0.5? x : Math.round(x));
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Eyso