mirror of
https://github.com/google/nomulus
synced 2026-06-09 16:33:02 +00:00
b2d5108c0c
In the case where currency has a zero scale (i.e. JPY), Money.of(currency, 0) throws ArithmeticException because the second argument is handled as a double, and JPY (for example) does not allow decimal precision, even if the decimal is zero. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129023540