79588528

Date: 2025-04-23 11:45:14
Score: 1.5
Natty:
Report link

You can also just compute a diff and then just check if it is still in range

let a = 3.0;
let b = 2.9999999999;
let diff = a - b;
assert_eq!(diff < 0.000001, diff > -0.000001);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user29599701