Hi Hongyan,
This value is out of range of a standard 32 bit integer, but the
current version of NCL supports 64 bit integers, which allows for very
large integers. You can create a 64 bit integer using a literal value
like this:
v = 200707280000q ; signed
or
v = 200707280000Q ; unsigned
You can also create an array of 64 bit integers using the 'new'
operator:
va = new(12, int64)
You should also be aware of the new type-conversion functions in NCL
5.2.0: toint64 and touint64. See the release notes for more info.
-dave
On Apr 20, 2010, at 11:56 AM, H.Dang wrote:
> Hello~
>
> I'm trying to use the following numbers as part of the file names,
> (year/month/day/hour/minute)
>
> 200707280000
>
> but the results are not correct. Just wondering if NCL can display
> such big values, or if I should put some specific line in my ncl file.
>
> Thanks!
> --
> Cordially,
> Hongyan
> 鸿雁
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 20 12:23:04 2010
This archive was generated by hypermail 2.1.8 : Fri Apr 23 2010 - 14:40:07 MDT