3 ms·
Read the faq and the divide documentation, couldn’t figure out how it handles fractional cents? Does it?
by mattnewton 9y ago
Read the faq and the divide documentation, couldn’t figure out how it handles fractional cents? Does it?
- rinchik 9y agoGreat point, I was about to say the same. Looks like it does lose cents and can't be used in production. from the source: divide(a, b) { return a / b },
- sarahdayan 9y agoHey! You need to use the allocate method for this. It will redistribute fractional cents and return an array of Dinero objects.