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

Home » Public Forums » archive » TOTAL(): was Declaration of variables in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
TOTAL(): was Declaration of variables in IDL [message #26948] Wed, 03 October 2001 15:34
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
Craig Markwardt wrote:

> The output of TOTAL is always a floating point type.

Unless, of course, one supplies the /DOUBLE keyword to TOTAL()...

I mention this because at least a couple of times (e.g. when doing checksums) I
have wished that TOTAL() also had a /L64 keyword. For example, according to
MACHAR() on my Solaris machine, one loses precision with TOTAL() when totaling
an integer array that sums to more than 2^53, but with a L64 output, one could
sum up to 2^64-1 without losing any precision.

--Wayne Landsman landsman@mpb.gsfc.nasa.gov
[Message index]
 
Read Message
Previous Topic: INTERPOL
Next Topic: Re: right-justifying draw widgets?

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

Current Time: Wed Oct 08 13:10:54 PDT 2025

Total time taken to generate the page: 0.00424 seconds