Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Fwd: Re: double == double Date: Wed, 19 Oct 2016 21:30:08 -0400 Organization: Aioe.org NNTP Server Lines: 19 Message-ID: References: NNTP-Posting-Host: PBuS014lhzVyHjLbXmo/ZQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:35836 On 10/19/2016 5:10 PM, Eric Sosman wrote: > (A final point: All this argument over the sign of nothing leaves > me, I confess, a bit perplexed. However, those with more numerical > sophistication find the distinction between +0 and -0 to be of great > practical importance. William Kahan is particularly vehement on the > topic; look for his presentation titled "Branch Cuts for Complex > Elementary Functions or Much Ado About Nothing's Sign Bit," and > bring more mathematical prowess to your reading than I can. :) With the specification for operations then I don't think the existence of -0.0 has much impact on practical programming. Ones complement with not special handling (like in old CDC Cyber) is a PITA and resulting in weird code like adding zero to an integer before comparing to zero to convert -0 to +0. Arne