Round(-0.5) returns 0

Just encountered this in GDevelop: round(-0.5) returns 0, as does int(-0.5). I’m reasonably certain it should be -1, though. Indeed, round(-0.51) = -1 and round(0.5) = 1. Am I overlooking something?

Pick a favorite:


:sweat_smile:

1 Like