Greetings NCL,
Firstly, I'd like to commend you on the wonderful so=
ftware that is NCL. I think it's wonderful.
Secondly, I'd like to =
report that I may have found a bug in the tostring function...
When I =
round a float using decimalPlaces and then convert that float to a string, =
the string matches the unrounded number instead of the rounded one.
nc=
l 0> a=32.328739
ncl 1> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/cont=
ributed.ncl"
ncl 2> b=decimalPlaces(a,5,True)
ncl 3> print(b)
Va=
riable: b
Type: float
Total Size: 4 bytes
=
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]=
cl 5> print(c)
Variable: c
Type: string
Total Size: 8 bytes
=
1 values
Number of Dimensions: 1
Dimensi=
ons and sizes: [1]
Coordinates:
(0) 32.328739
T=
his
behavior only seems to happen with certain numbers, but I can't quit=
e
see a pattern as to which numbers are affected. I only need to round t=
o 5
decimal places, so I'm not sure if other roundings can be similarly =
information, I'm using ncl version 6.1.2 on a 64-bit Linux system (I
ins=
talled the Debian gcc455 binary).
With best regards,
Dave.
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 03 09:32:44 2014
This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT