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

Home » Public Forums » archive » Re: DOUBLE precision no precise??
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: DOUBLE precision no precise?? [message #29592] Tue, 05 March 2002 13:11 Go to previous message
Pete[1] is currently offline  Pete[1]
Messages: 7
Registered: April 1999
Junior Member
"Dave Williams" <dave_r_williams@hotmail.com> wrote:
>> Anyways, this is what you want to do (note the "d" at the end
>> of the number).
>> IDL> print,42766.080001d,format='(f24.12)'
>> 42766.080001000002
>
> James, Reimar, Vincent, Martin, Bob: Thanks a million.
>
> Once again, another stupid question asked, another patient answer given!
>
> Much obliged to you all.
>
> Dave

Even if you do use double precision in IDL, you'll probably find that your
pocket calculator is more accurate than your computer. A decent calculator
will use high precision or BCD or something weird like that. It has time
on its side.

Pedantically,
Peter Mason
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bad magic number for shared library when using CALL_EXTERNAL
Next Topic: CALL_EXTERNAL using C/Fortran shared library on HPUX11

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

Current Time: Wed Oct 08 16:08:37 PDT 2025

Total time taken to generate the page: 0.00293 seconds