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

Home » Public Forums » archive » Re: JULDAY-CALDAT problem
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: JULDAY-CALDAT problem [message #38266 is a reply to message #38265] Thu, 26 February 2004 06:19 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Luciano writes:

> Hi, maybe somebody has a clue about the following:
>
> IDL> aa=JulDay(11,18,1990,2,0,0)
> IDL> Caldat,aa,m,d,y,h,mi,s
> IDL> print,m,d,y,h,mi,s
> 11 18 1990 2 0 5.3644181e-005
>
> Why does s=5.3644181e-005 and not s=0 as it should be?

I think it is a question of using a computer to do the
calculations rather than your fingers. :-)

Floating point numbers have about 7 significant figures.
Assuming 60 seconds in a minute, this number starts to
vary in the seventh place. So, about as close to zero
as you gonna get, I think.

For a more complete explanation, see this article:

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

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
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: Extracting strings from an array
Next Topic: JULDAY-CALDAT problem

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

Current Time: Sat Oct 18 13:46:04 PDT 2025

Total time taken to generate the page: 1.20161 seconds