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

Home » Public Forums » archive » Re: 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
Re: Type convertion error ? [message #72720] Fri, 01 October 2010 08:32
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Thank you David !
nata
Re: Type convertion error ? [message #72721 is a reply to message #72720] Fri, 01 October 2010 08:15 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
nata writes:

> 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 ?

The sky is falling. :-)

http://www.dfanning.com/math_tips/sky_is_falling.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Type convertion error ?
Next Topic: Re: time series analysis - request for ideas?

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

Current Time: Fri Oct 10 05:04:54 PDT 2025

Total time taken to generate the page: 0.40099 seconds