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

Home » Public Forums » archive » Type convertion error ?
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 convertion error ? [message #72722] Fri, 01 October 2010 08:07
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Hello everybody,

Why the following occurs ?

If I have an unsigned LONG like a=1285649589ul

And I do
PRINT, a, FORMAT='(f0.1)'
1285649589.0

PRINT, FLOAT(a), FORMAT='(f0.1)'
1285649536.0

I don't understand the problem.. It seems that there is a difference
changing the data type but, then, I do
PRINT, a - FLOAT(a), FORMAT='(f0.1)'
0.0

WTF ???
What's going on here ?
Thanks in advance,

nata
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Help on Lon and lat.
Next Topic: Re: Type convertion error ?

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

Current Time: Wed Oct 08 19:55:51 PDT 2025

Total time taken to generate the page: 0.00570 seconds