assertion error when trying floor(3)

This commit is contained in:
Mateusz Piątkowski 2022-06-06 17:01:17 +02:00
parent 1dbf859ee9
commit 70814d62a1
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -51,7 +51,7 @@ void Number::simplify_inplace()
auto Number::floor() const -> Number auto Number::floor() const -> Number
{ {
auto copy = simplify(); auto copy = simplify();
copy = copy - (copy % 1); copy = copy - (copy % Number(1));
return copy; return copy;
} }