sercantutar / infint

Arbitrary-Precision Integer Arithmetic
http://sercantutar.github.io/infint/
201 stars 49 forks source link

`%=` is wrong #16

Closed user202729 closed 6 years ago

user202729 commented 6 years ago

The code

#include"InfInt.h"
int main(){InfInt l=-5;l%=2;std::cout<<l;}

prints -5.

Try it online!