onepub-dev / fixed

A dart implementation of fixed precision numbers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`toInt` implementation wrong?

flodiebold opened this issue · comments

: (minorUnits ~/ minorUnits.pow(scale)).toInt();

Am I completely misunderstanding what toInt is supposed to do, or should this rather be BigInt.from(10).pow(scale)?

You are correct.

I've released 3.0.1 with your fixed applied and some additional unit tests.

Thanks!