The following program illustrates using BigInteger and BigDecimal. Replace the lines with two assignment statements. As indicated

Question:

The following program illustrates using BigInteger and BigDecimal. Replace the lines with two assignment statements. As indicated by the output, the first assignment statement divides the original number by 3.0 and uses 30 significant digits in displaying the result. The second assignment statement divides the original number by 3.0 and uses 4 fractional digits in displaying the result.

import java.math.*; // Double, BigDecimal, MathContext: public class Big ( public static void main(String[]

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: