Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail From: j4n bur53 Newsgroups: comp.lang.java.programmer Subject: Has Android different floats? Date: Sun, 24 Jun 2018 20:41:45 +0200 Organization: albasani.net Lines: 51 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net tH1VPlek8l9cq1DBi6nIvkyZI9ZNreduIPV3O0WjiGUZYF9XFeXo6IKxUv6F+9ndsPEGZbIarhh3ROlod0KcoA== NNTP-Posting-Date: Sun, 24 Jun 2018 18:41:43 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="BfLDWiRqc0zrCRIeBlyawUOC96kAlKZxpOYz9J9TeM7NQSF0VQwjYZsoKZO1X0vPvFKjruxJYw4QeL98l1u06ZjKo0gLC96QHuSpePHSgZqD8Cqg6Q20ITxamgS0BUnb"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 X-Mozilla-News-Host: news://news.albasani.net:119 Cancel-Lock: sha1:002qJ25gRDAazoH9fWbKQQWFp+o= Xref: csiph.com comp.lang.java.programmer:38400 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