Длинная арифметика

BigInteger two = BigInteger . valueOf (2);
BigInteger powerOfTwo = two .pow (100);
BigDecimal one = BigDecimal . valueOf (1);
BigDecimal divisionResult =
one. divide (new BigDecimal ( powerOfTwo ));

Оцените автора
Kosenkov.Pro
Добавить комментарий