Wednesday, March 09, 2005

Accuracy

Program

package bloggingjava;

class Main {
    public static void main(String[] args) {
        System.out.println(41 * 0.1 - 4.1); // a = 0.0 ?

    }
}

Output

8.881784197001252E-16

No comments: