From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,dce0ffd1799b094b X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-02-08 22:01:02 PST Path: gmd.de!xlink.net!howland.reston.ans.net!agate!msuinfo!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!covax!test1.commerce.uq.oz.au!user Newsgroups: comp.sys.dec Subject: Re: VAX D_FLOAT to IEEE conversion Message-ID: From: bellamy@commerce.uq.edu.au (David Bellamy) Date: Wed, 09 Feb 1994 16:01:02 +1000 Followup-To: comp.sys.dec References: <2j9d35$poe@coyote.rain.org> Distribution: world Organization: The University of Queensland Nntp-Posting-Host: test1.commerce.uq.oz.au In article <2j9d35$poe@coyote.rain.org>, wns@coyote.rain.org (William Basden) wrote: > Does anyone have code to convert VAX D_FLOAT numbers into IEEE double > format? > > I've got some VAX/VMS files that I need to read in on an Alpha OSF/1 > machine. On our DECstations (Ultrix), there was a library function > called dtoi() that would do this for us, but it does not seem to exist > on DEC OSF/1. > Check the convert keyword in the open statement. To quote from the VMS help file: The formats available, in addition to the native VAX floating and little-endian integer types are: IEEE little-endian floating and integers (compatible with Alpha AXP and RISC DECstation systems, Intel processors), IEEE big-endian floating and integers (Sun, IBM RS-6000, etc.), CRAY big-endian floating and integers and IBM System\370 big-endian floating and integers. -- David Bellamy. Deparment of Commerce. The University of Queensland. Australia. Internet: bellamy@commerce.uq.edu.au