[ncl-talk] Possible bug for the decimalPlaces in version 6.1.2?

Dennis Shea shea at ucar.edu
Mon Nov 28 17:42:59 MST 2016


Thx for the information. This will be fixed in NCL 6.4 0
I have attached  a fix which you can use. See test script.


On Sun, Nov 27, 2016 at 4:27 PM, Yuqiang Zhang <yuqiangzhang.thu at gmail.com>
wrote:

> Hi,
>
>
>
> When I am using “decimalPlaces” in version 6.1.2, it seems no different
> for the result whether I use “Truncate”  or “Round”. It both gave the
> round result.
>
> x=12.345678
>
> xRound = decimalPlaces(x, 2, True)
>
> xRound = 12.35
>
>
>
> xRound = decimalPlaces(x, 2, False)
>
> xRound = 12.35
>
>
>
> I only have the version 6.1.2 installed on my machine. If this is
> corrected in the new released version, please ignore this email.
>
>
>
> Thanks!
>
> Regards,
>
> Yuqiang
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161128/5e637ea0/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decimalPlaces.ncl
Type: text/x-ncl
Size: 1955 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161128/5e637ea0/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tst_decimalPlaces.ncl_2
Type: application/octet-stream
Size: 1225 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161128/5e637ea0/attachment.obj 


More information about the ncl-talk mailing list