miniblog.
← Back to all posts
Wilfred Hughes
Apr 8, 2014 at 08:40
Yikes. In #python, (-7) % 4 == 1 but Decimal(-7) % Decimal(4) == Decimal('-3'). That's really confusing.