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

Home » Public Forums » archive » type conversion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
type conversion [message #43989] Fri, 06 May 2005 11:21
rensheu is currently offline  rensheu
Messages: 3
Registered: February 2005
Junior Member
Hello,

I have a question about type conversion in IDL.

I get a float value return by IDLffDICOM object, but it is stored in
byta[4]. Is there any way like in C as follows,

char byta[4]={103, 38, 18, 68};
float tmpv;

pf = (float *)(&bytarr);
tmpv = (float)(*pf);

convert the varible from a 4 elements byte array to a float point
variable in IDL?

Thanks a lot,
R.D.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Muddling Through XML Files
Next Topic: Re: type conversion

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

Current Time: Fri Oct 10 00:33:24 PDT 2025

Total time taken to generate the page: 0.87884 seconds