Strange error

From: Saji Njarackalazhikam Hameed <saji_at_nyahnyahspammersnyahnyah>
Date: Thu, 26 Apr 2007 14:16:47 +0900

Dear All,

I got this strange and a bit frightening values for the
following calculation.

ncl 0> a=35280
ncl 1> print(a*192*96*4)
(0) -1693843456

I believe that this is because the limit for integer values is reached, but
should not NCL return an error or warning message for this.

; Making the numbers floats would give the right value.
;
; ncl 2> print(a*192*96*4.)
; (0) 2.601124e+09

I am using NCL version 4.2.0.a035 on a Linux machine.

saji
...

-- 
Saji N. Hameed
APEC Climate Center          				+82 51 668 7470
National Pension Corporation Busan Building 12F         
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705			saji_at_apcc21.net
KOREA
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Apr 25 2007 - 23:16:47 MDT

This archive was generated by hypermail 2.2.0 : Tue May 08 2007 - 09:54:33 MDT