comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: converting 8 bytes to a double
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: converting 8 bytes to a double [message #2504] Wed, 03 August 1994 18:25 Go to previous message
Geoff.Sobering is currently offline  Geoff.Sobering
Messages: 14
Registered: June 1994
Junior Member
In article <318lqdINN5n5@i32.sma.ch>, stl@sma.ch (Stephen Strebel) wrote:

> sorry about that. COnverting 4 bytes to a long (as in the lasting
> posting) isn't really what I wanted to find out about. I really need to
> convert 8 bytes into a double.

Should work the same as with byte->long.

new_double = double( existing_byte_array, 0, 1 )

and the reverse operation:

new_byte_array = byte( existing_double, 0, 8 )

--
Geoff Sobering (Geoff.Sobering@nih.gov)
In Vivo NMR Research Center
National Institutes of Health
[Message index]
 
Read Message
Read Message
Previous Topic: Frustrated with SURFACE,/HORIZONTAL
Next Topic: Re: Any fix for IDL + MacX?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:25:56 PDT 2025

Total time taken to generate the page: 0.00383 seconds