From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,ffb88b3c578f5141 X-Google-Thread: f7344,c4f3a96528b0103d X-Google-Attributes: gid1164f8,gidf7344,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail From: koehler@eisner.nospam.encompasserve.org (Bob Koehler) Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: Most impressive VAX installations Message-ID: Date: 3 Nov 2008 15:02:48 -0600 References: <5a870cdf-5d8a-4c98-8a18-1f9047ddcf27@q26g2000prq.googlegroups.com> <00A81F8D.BE9FA366@SendSpamHere.ORG> <00A82051.B459084E@SendSpamHere.ORG> <00010d8a$0$26230$c3e8da3@news.astraweb.com> Organization: Encompasserve NNTP-Posting-Host: 192.135.80.34 X-Trace: news.sunsite.dk DXC=I0TG3DgZLHWl, JF Mezei writes: > Bob Koehler wrote: > >> There were calculations we did on our almighty MV II that were >> trivial to code up because the Fortran compiler fully supported >> H-float. > > Out of curiosity, what sort of calculations could H-float do that IEEE > floating point can't do ? H-float is a VAX specific format with about the same number of bits, but slightly different definition, as IEEE X-float. H-float has twice as many bits as VAX D-float or G-float. X-float has twice as many bits as IEEE T-float. In C speak, float would be done in VAX F-float or IEEE S-float, or similar. double would be done in VAX D- or G-float, or IEEE T-float. I don't know of any C compiler that supports VAX H-float or IEEE X-float. In Fortran, REAL or REAL*4 would be F-float or S-float. DOUBLE PRECISION or REAL*8 would be D-, G-, or T-float. REAL*16 would be H- or X-float. I don't know of any Fortran compiler that supports X-float. The extra precision of H-float was usefull in an algorithm that converted D-float floating point values to 48 bit fixed point. Just keeping everything in D-float would drop low bits during the algorithm, leading to an inaccurate result. We were given the algorithm, coded for Fortran REAL*8 on another system by someone who didn't realise its limitations. Changing to REAL*16 was a trivial edit to solve the problem.