lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@gmail.com>
Subject Math.pow in 1.8
Date Mon, 30 Jul 2012 11:45:51 GMT
A note just in case somebody hits this. Math.pow's implementation is
changed in 1.8 and the results differ sometimes. Seems to be a bug, I
am in progress of clarifying this.

        System.out.println("Math.pow(0.35380219098726884,
0.2564102564102564) = ");
        System.out.println(Math.pow(0.35380219098726884D, 0.2564102564102564D));
        System.out.println("Should be:\n0.7661213560902933");

yields:

Java(TM) SE Runtime Environment, 1.8.0-ea-b49
Java HotSpot(TM) 64-Bit Server VM, 24.0-b16

Math.pow(0.35380219098726884, 0.2564102564102564) = 0.7661213560902934
Should be: 0.7661213560902933

Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message