Re: decimalPlaces problem

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue, 29 Jul 2008 14:39:38 -0600

Hello,

Yes ... this is a bug. My mistake!

I have fixed the bug. The corrected function will be in the
next release.

I will send you the fixed routine in a separate email.
Anybody else that wants the fixed routine, pls email me.

THX
D
Matt Higgins wrote:
> Hi all,
>
> Has anyone noticed that the decimalPlaces function seems to round
> incorrectly for small negative numbers? Here is an example of what I
> mean:
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> example = -0.041
> print(example)
> print(decimalPlaces(example,2,True))
>
> Any thoughts?
>
> Thanks,
> Matt
>

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jul 29 2008 - 14:39:38 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 30 2008 - 15:23:14 MDT