79421182

Date: 2025-02-07 14:22:14
Score: 0.5
Natty:
Report link

yes ,exactly floating point computation can produce slightly different result across different machine or environment even the same binary excute.
: it depends to the arch of CPU and OS etc... you can use std::nearbyint instead of std::round()
check https://learn.microsoft.com/fr-fr/cpp/c-runtime-library/reference/nearbyint-nearbyintf-nearbyintl1?view=msvc-170

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Marouen kadri