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

Home » Public Forums » archive » the type parser
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: the type parser [message #44480 is a reply to message #44075] Wed, 15 June 2005 12:01 Go to previous messageGo to previous message
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
Thats a different issue:
In an *expression*, IDL always converts the lower to the higher type in
this order:
STRING<BYTE<(INT|UINT)<(LONG|ULONG)<(LONG64|ULONG64)<FLOAT <DOUBLE<COMPLEX<COMPLEXDBL
before evaluation.
Before we were taking about reading a string and determining the type
(for storing it appropriately).
Note that for proper conversion one of the types has to have the proper
type beforehand:
IDL> print,'1.23' gt '2e-10'
0
IDL> print,1.23 gt 2e-10
1
but:
IDL> print,1 gt '2e-10'
0

Cheers,
marc
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Input from 10 button Joy Stick
Next Topic: Re: IDL error message

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

Current Time: Fri Oct 10 02:19:05 PDT 2025

Total time taken to generate the page: 1.51924 seconds