Search:

Type: Posts; User: miller4103

Search: Search took 0.09 seconds.

  1. Replies
    11
    Views
    1,464

    Re: no ending after decimal point.

    It enters a lot of 0's. It does not continue answering the equation tho. Why is that?
  2. Replies
    11
    Views
    1,464

    Re: no ending after decimal point.

    the output = 2
  3. Replies
    11
    Views
    1,464

    Re: no ending after decimal point.

    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...
  4. Replies
    11
    Views
    1,464

    Re: no ending after decimal point.

    import java.lang.Math;
    import java.math.BigDecimal;
    import java.text.NumberFormat;
    import java.util.*;
    /**
    *
    *
    */
    public class Pie {
  5. Replies
    11
    Views
    1,464

    Re: no ending after decimal point.

    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"...
  6. Replies
    11
    Views
    1,464

    no ending after decimal point.

    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...
Results 1 to 6 of 6