GMath.Mod for doubles.