Re: [Tutor] Decimal module question

2006-12-06 Thread Dick Moores
At 05:35 AM 12/6/2006, Kent Johnson wrote: >Dick Moores wrote: >>I wrote this function: >>def numberRounding(n, significantDigits=4): >> """ >> Rounds a number (float or integer, negative or positive) >> to any number of >> significant digits. If an integer, there is no lim

Re: [Tutor] Decimal module question

2006-12-06 Thread Kent Johnson
Dick Moores wrote: > I wrote this function: > > def numberRounding(n, significantDigits=4): > """ > Rounds a number (float or integer, negative or positive) to any number > of > significant digits. If an integer, there is no limitation on it's size. > """ > import de

[Tutor] Decimal module question

2006-12-06 Thread Dick Moores
I wrote this function: def numberRounding(n, significantDigits=4): """ Rounds a number (float or integer, negative or positive) to any number of significant digits. If an integer, there is no limitation on it's size. """ import decimal def d(x):