Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 06 Aug 2011 05:35:36 -0500 Date: Sat, 06 Aug 2011 03:35:40 -0700 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: higher precision doubles References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 22 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 70.230.203.65 X-Trace: sv3-hPXVyIOXmxG6K1AN1WhKxp/ryv2voMhPHFq9x55e9XrTlGmLNt7JlxS/XOGYGPVXv8SVPgM6UGN4KKL!VkkT2y2TytgNQhB2/6c8TKzb46bdWzR9Av647S+QKzEkjhr9Fu4Zj+nfNSj0Ru1xVnoHlinstXLT!DNwicYTYv+5i0aPP+TQR6jBwh8JfMUWgtseH8v3sk1VMAg== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1999 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6823 On 8/5/2011 3:20 PM, Jan Burse wrote: > Dear All > > IEEE allows to internally calculate with additional bits. > Is it possible to have awailable these ops? Like an add > with this higher precision? How could we store such a > result? Would there be a wrapper like Double? Some of the things one might do with an extended precision type can be done with BigDecimal. In general, a Java implementation must make its floating point arithmetic give the same results as the 32 and 64 bit basic formats. If "strictfp" is off, the implementation can carry extra extra exponent bits, avoiding some cases of overflow and underflow, but is not required to do so. Even without strictfp, the mantissa sizes and therefore the precision are fixed. See http://java.sun.com/docs/books/jls/third_edition/html/typesValues.html#9208 Patricia