You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gb_remainder uses round. this is bad, because it means gb_remainder(1.5, 2.0) = -0.5, and gb_mod(2.5, 2.0) = 2.5. this is contrary to how the C standard library modf / remainder functions work.
edit: it looks like gb_remainder is correct; but gb_mod is wrong.
The text was updated successfully, but these errors were encountered:
gb_remainder
usesround
. this is bad, because it meansgb_remainder(1.5, 2.0)
=-0.5
, andgb_mod(2.5, 2.0)
=2.5
. this is contrary to how the C standard librarymodf
/remainder
functions work.edit: it looks like
gb_remainder
is correct; butgb_mod
is wrong.The text was updated successfully, but these errors were encountered: