Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: bellamy@commerce.uq.edu.au (David Bellamy)
Subject: Re: VAX D_FLOAT to IEEE conversion
Date: Wed, 09 Feb 1994 16:01:02 +1000	[thread overview]
Message-ID: <bellamy-090294160102@test1.commerce.uq.oz.au> (raw)
In-Reply-To: 2j9d35$poe@coyote.rain.org

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


  reply	other threads:[~1994-02-09  6:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-09  1:08 VAX D_FLOAT to IEEE conversion William Basden
1994-02-09  6:01 ` David Bellamy [this message]
1994-02-10  1:05   ` William Basden
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox