Closed BenMorel closed 3 years ago
Does the remainder needs to be appended at the end even on exact divisions?
@NCatalani I think so, yes. I'd rather get a 0 USD
remainder than having to check for existence of the nth value in the returned array.
Same as
split()
andallocate()
, but:Money
at the end of the array with the remainderTaking the examples from the README: