It enters a lot of 0's. It does not continue answering the equation tho. Why is that?
Type: Posts; User: miller4103
It enters a lot of 0's. It does not continue answering the equation tho. Why is that?
the output = 2
I dont want it to round. I want the pie to continue forever until i shut down the program.
I thought big.setscale(BigDecimal.ROUND_CIELING) would continue to count after the decimals with no set...
import java.lang.Math;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.*;
/**
*
*
*/
public class Pie {
This is what i have so far:
System.out.println((big.setScale(BigDecimal.ROUND_CEILING)));
Problem is when i run it i get this error:
Exception in thread "main"...
How do i get my program to keep going until the end is reach of a number? For example 22/7 = pie. How do i get the program to keep giving numbers after pie instead of stoping after 9 or 10 decimal...