Path: csiph.com!news.bbs.nz!.POSTED.184-155-113-241.cpe.cableone.net!not-for-mail From: "j4n bur53" Newsgroups: comp.lang.java.programmer Subject: Has Android different floats? Date: Sun, 24 Jun 2018 20:41:44 -0500 Organization: Agency News - Dunedin, New Zealand Message-ID: <5B324677.1149.ucljprogr@castlerockbbs.com> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit Injection-Info: news.bbs.nz; posting-host="OzrHixpCILyhgWpD0JEChpw8GfzwXVr5j8UB2bSv2xw"; logging-data="10567"; mail-complaints-to="abuse@news.bbs.nz" To: All X-FTN-AREA: COMP.LANG.JAVA.PROGRAMMER X-Gateway: castlerockbbs.com [Synchronet 3.17a-Linux NewsLink 1.108] X-Comment-To: All X-FTN-Kludge: CHARSET: LATIN-1 X-FTN-MSGID: 1:261/38.0 fcf4b7da Xref: csiph.com comp.lang.java.programmer:38410 From: j4n bur53 Dear All, Running a simple test. ** is Math.pow(), ^ is BigInteger.pow() and then BigInteger.doubleValue(). On Java: ?- between(15,30,N), X is 10**N-10^N, write(N-X), nl, fail; true. 15-0.0 16-0.0 17-0.0 18-0.0 19-0.0 20-0.0 21-0.0 22-0.0 23-1.6777216E7 24-0.0 25-0.0 26-0.0 27-0.0 28-0.0 29-0.0 30-0.0 On Adroid: ?- between(15,30,N), X is 10**N-10^N, write(N-X), nl, fail; true. 15-0.0 16-0.0 17-0.0 18-0.0 19-0.0 20-0.0 21-0.0 22-0.0 23-0.0 24-0.0 25-0.0 26-0.0 27-0.0 28-0.0 29-1.7592186044416E13 30-0.0 Has Android different floats? Tested jdk1.8.0_152 against Android 8.0.0 Best Regards --- BBBS/Li6 v4.10 Toy-3 * Origin: Prism bbs (1:261/38)