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

Home » Public Forums » archive » Re: rounding errors
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: rounding errors [message #24916 is a reply to message #24915] Fri, 27 April 2001 07:51 Go to previous messageGo to previous message
Randall Skelton is currently offline  Randall Skelton
Messages: 169
Registered: October 2000
Senior Member
On Fri, 27 Apr 2001, Liam E. Gumley wrote:

> This is a subtle but important point. DOUBLE() is a type conversion
> function, and
>
> a = double(2.348339)
>
> shows a FLOAT argument being converted to a DOUBLE. The safest way to
> 'cast' a double variable is
>
> a = 2.348339d
[snip]

Wow... I am glad that I have now learned that particular 'IDL feature'
early on in my PhD. Just yesterday, I convinced the department that we
really need a few good IDL programming books as the current
'learning-by-fire' approach could have some unfortunate consequences ;)

Oh well, back to searching my IDL code for incorrect double precision
constants...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: AAARGH-2 !!! CALL_EXTERNAL and IDL5.2 (the solution)
Next Topic: TLB-Widget focus

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

Current Time: Fri Oct 10 08:56:48 PDT 2025

Total time taken to generate the page: 0.00210 seconds