rvelthuis / DelphiBigNumbers

BigInteger and BigDecimal for Delphi
http://rvelthuis.de/programs/bigintegers.html
BSD 2-Clause "Simplified" License
119 stars 62 forks source link

mod operator returns negative values (e.g. -15 mod 5 = -3, but should be 1) #14

Open spraot opened 5 years ago

spraot commented 5 years ago

I see this is standard Delphi behavior for mod, so I guess fixing this would cause other problems. Feel free to close and I'll handle it at my end. Thanks for the great library!