public long convertFromUahToUsd(long uah) { return BigDecimal.valueOf(uah) .divide(Currency.USD.getBuyRate(), RoundingMode.HALF_UP) .longValue(); }