Hello,
A calculations involving mixed float and integer gives
a wrong answer.
Integer calculations seem to be OK.
NCAR Command Language Version 4.2.0.a034
year = 2005
month = 12
; 20051231 --- OK
print(year*10000+month*100+31)
; 20051232
print(floattointeger(year*10000+month*100+31.))
; 32
print(year*10000+month*100+31.-20051200.)
print(year*10000+month*100+31.-20051200)
-----
Dr Takeshi Enomoto
eno_at_jamstec.go.jp
Earth Simulator Center, JAMSTEC
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 14 2006 - 00:26:19 MST
This archive was generated by hypermail 2.2.0 : Tue Dec 19 2006 - 07:55:14 MST