BigDecimal

· Java
보너스 돈이 생겼다 카지노에서 블랙잭을 마치고 환전을 하러갔다. 기분 좋게 [4.98$]칩 8개와 [0.99$]칩 5개를 교환하려했다. private static final double BIG_CHIP_REFUND_DOLLAR = 4.98d; private static final double SMALL_CHIP_REFUND_DOLLAR = 0.99d; void exchange() { double accountDollar = 0d; int bigChipCount = 8; for (int i = 0; i < bigChipCount; i++) { accountDollar += BIG_CHIP_REFUND_DOLLAR; } int smallChipCount = 5; for (int i = 0; i < small..