From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,63ba3327e192f2dd X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,63ba3327e192f2dd X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-02-15 08:04:58 PST Xref: gmd.de comp.os.vms:40482 comp.sys.dec:13414 Path: gmd.de!xlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!decwrl!pa.dec.com!jac.zko.dec.com!quark.enet.dec.com!lionel From: lionel@quark.enet.dec.com (Steve Lionel) Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: IEEE floating point conversion needed Date: 15 Feb 1994 16:04:58 GMT Organization: Digital Equipment Corporation, Nashua NH Distribution: world Message-ID: <2jqrra$s48@jac.zko.dec.com> References: <2jq1pk$k89@cruella.ee.pdx.edu> Reply-To: lionel@quark.enet.dec.com (Steve Lionel) NNTP-Posting-Host: QUARK Keywords: IEEE floating point X-Newsreader: mxrn 6.18-9 In article <2jq1pk$k89@cruella.ee.pdx.edu>, rkwee@ee.pdx.edu (Roland Kwee) writes: |>I can't believe I still haven't found a DEC conversion function in C |>or Fortran to convert VAX floating point numbers to IEEE format. We |>need this to transfer binary data files from the VAX to PC and other |>computers. The Alpha handles both formats, but I haven't found a |>conversion function here either. OpenVMS AXP supports the RTL routine CVT$CONVERT_FLOAT which does this conversion. It is documented in the LIB$ RTL manual. For OpenVMS VAX it is supported as of V6.1, but the routine is also present if you have installed DEC Fortran V6.0 (or later) for OpenVMS VAX Systems. DEC Fortran (on all platforms) can do the conversion automatically during unformatted input or output when you specify the CONVERT= OPEN keyword. See the DEC Fortran documentation for further details. -- Steve Lionel lionel@quark.enet.dec.com or SDT Languages Group lionel@quark.zko.dec.com Digital Equipment Corporation 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent"