From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,353213c6ba11774a X-Google-Attributes: gid1164f8,public From: lionel@mail.dec.com (Steve Lionel) Subject: Re: DEC Unix 4.0 IEEE floating point on Alpha Date: 1997/07/25 Message-ID: <5raf7o$d75@usenet.pa.dec.com>#1/1 X-Deja-AN: 258753012 Distribution: world Sender: lionel@quark (Steve Lionel) References: <5r5qt6$gd8@crcnis3.unl.edu> <5r732p$9n@zam201.zam.kfa-juelich.de> <1997Jul24.122022.1@sldb4.slac.stanford.edu> Organization: Digital Equipment Corporation, Nashua NH Reply-To: lionel@mail.dec.com (Steve Lionel) Newsgroups: comp.sys.dec In article <1997Jul24.122022.1@sldb4.slac.stanford.edu>, fairfield@sldb4.slac.stanford.edu writes: |> Perhaps a better solution is to use the "convert float" routines |> available on DU (and OpenVMS). Sorry that I can't recall the exact |> name on DU; its a run-time library routine called CVT$CONVERT_FLOAT |> on OVMS. By using this routine for all input and output of binary |> data, you can maintain a single external source form, e.g., |> big-endian & IEEE floats, etc. The routine does many more |> conversions than these, but for the problem at hand... The DIGITAL UNIX routine is cvt_ftof. There's a man page for it. Unlike CVT$CONVERT_FLOAT, it will convert between little-endian and big-endian IEEE. (CVT$CONVERT_FLOAT will convert between any OTHER of the supported datatypes and big-endian IEEE, but won't do the simple byte-swapping!) -- Steve Lionel mailto:lionel@mail.dec.com Fortran Development http://www.digital.com/info/slionel.html Digital Equipment Corporation 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For information on DIGITAL Fortran, see http://www.digital.com/fortran