Re:Fans of a 2013 Japanese soccer game tracked down a bizarr...
by adrian_b on Tuesday September 07, 2021 @03:03PM
(#28448558)
You are right that for that place in the game this probably exposed a bug in the original game.
Normally testing the sign of a floating-point number that is the result of a multiplication or division should always be preceded by a test for zero, unless you intentionally want to take different paths for zeros with different signs.
Normally testing the sign of a floating-point number that is the result of a multiplication or division should always be preceded by a test for zero, unless you intentionally want to take different paths for zeros with different signs.