GLib.Math.remainder(3, 2) is giving incorrect output (-1)
The description here: https://valadoc.org/glib-2.0/GLib.Math.remainder.html says "The return value is x - n * y, where n is the value x / y, rounded to the nearest integer.". That's what it does indeed, but for specifically the remainder of 2, that's incorrect. 1.5 is thus rounded up, but remainder should be 1 here of course, not -1.
Edited by Jacob Vlijm