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

Yuqiang Zhang yuqiangzhang.thu at gmail.com
Mon Nov 28 19:05:29 MST 2016


Thanks for the patches! 

Regards,

yuqiang

 

From: Dennis Shea [mailto:shea at ucar.edu] 
Sent: Monday, November 28, 2016 7:43 PM
To: Yuqiang Zhang <yuqiangzhang.thu at gmail.com>
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] Possible bug for the decimalPlaces in version 6.1.2?

 

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 <mailto: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 <mailto: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/e3fa90c1/attachment.html 


More information about the ncl-talk mailing list