Search:

Type: Posts; User: helloworld922

Search: Search took 0.08 seconds.

  1. Replies
    6
    Views
    2,439

    Re: Evaluating to negative zero

    well, i guess at least they bothered to make -0 = 0 :P
  2. Replies
    6
    Views
    2,439

    Re: Evaluating to negative zero

    I was testing my parser with fairly random expressions to see if it was correct. When this spit out -0, i did a few tests in java itself to see what java did.

    I expected it to be positive 0.
  3. Replies
    6
    Views
    2,439

    Evaluating to negative zero

    Don't know if anyone's tried this, but:



    System.out.println((0*3*Math.sin(4)));

    output:


    even if you set it to a double variable:
Results 1 to 3 of 3