Is there a toInt method?
Closed this issue · 2 comments
Aynn commented
Would be neat to be able to be able to pass a value and currency and get the appropriate Int value.
bsutton commented
I'm think that maybe it should be
Bigint get minorUnits;
Thoughts?
bsutton commented
Actually the method already exists!
Money.parse('10.00').minorUnits.toInt() == 1000;
I'm not certain we benefit by having a specific 'toInt' method?