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
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
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):