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

Home » Public Forums » archive » JULDAY 5.4 not same as 5.3?
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 5.4 not same as 5.3? [message #24053 is a reply to message #23992] Mon, 05 March 2001 10:03 Go to previous messageGo to previous message
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
Don Woodraska <don.woodraska@lasp.colorado.edu> writes:
> I've pinpointed the problem.
>
> SUMMARY:
> ***
> The bug appears only with unsigned-long and unsigned-64-bit-long
> hour argument to JULDAY.

Hm, this is a much more general problem of unsigned data types, I
stumbled across it myself just two weeks ago.

I'm still not sure who's to blame, me (i.e. the programmer) or
IDL/RSI, but in general it does not make sense to take a negative of a
unsigned number, and IMHO there should also occur an automatic type
conversion as soon as a minus sign is involved. Currently, you get e.g.

IDL> x=5b
IDL> print,-x
251

Any comments on that?

Peter

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Dr. Peter "Pit" Suetterlin http://www.astro.uu.nl/~suetter
Sterrenkundig Instituut Utrecht
Tel.: +31 (0)30 253 5225 P.Suetterlin@astro.uu.nl
____________________________________________________________ ______________
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Linux and 3D graphics hardware support
Next Topic: BETTER FONTS

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

Current Time: Sun Oct 12 06:00:12 PDT 2025

Total time taken to generate the page: 0.64080 seconds