Re: Setting longer default decimal precision

2013-11-20 Thread Larry Hudson
On 11/20/2013 11:34 AM, Kay Y. Jheallee wrote: On 13.Nov.20.Wed 14:02, Steven D'Aprano wrote:> Hi Kay, > > You emailed me off-list, but your email address is bouncing or invalid, > so I have no way to email you back. So THAT's where it went! Sorry about that...yes, it WAS meant for the group

Re: Setting longer default decimal precision

2013-11-20 Thread Tim Golden
On 20/11/2013 19:34, Kay Y. Jheallee wrote: Ah, that looks like just the puppy I'm looking for. :) Okay then, I just installed the PortableApps version of Python, but when I downloaded "mpmath-0.17.win32" the installer aborted with "No Python installation found in the registry". So I'm trying to

Re: Setting longer default decimal precision

2013-11-20 Thread Tim Golden
On 20/11/2013 19:59, Mark Lawrence wrote: On 20/11/2013 19:34, Kay Y. Jheallee wrote: Ah, that looks like just the puppy I'm looking for. :) Okay then, I just installed the PortableApps version of Python, but when I downloaded "mpmath-0.17.win32" the installer aborted with "No Python installati

Re: Setting longer default decimal precision

2013-11-20 Thread Mark Lawrence
On 20/11/2013 19:34, Kay Y. Jheallee wrote: Ah, that looks like just the puppy I'm looking for. :) Okay then, I just installed the PortableApps version of Python, but when I downloaded "mpmath-0.17.win32" the installer aborted with "No Python installation found in the registry". So I'm trying to

Re: Setting longer default decimal precision

2013-11-20 Thread Kay Y. Jheallee
On 13.Nov.20.Wed 14:02, Steven D'Aprano wrote:> Hi Kay, > > You emailed me off-list, but your email address is bouncing or invalid, > so I have no way to email you back. So THAT's where it went! Sorry about that...yes, it WAS meant for the group :/! > [you wrote] > Okay,but after I import "

Re: Setting longer default decimal precision

2013-11-20 Thread Oscar Benjamin
On 20 November 2013 14:02, Steven D'Aprano wrote: > > but alas, all the functions in the math module convert their arguments to > float first, so even though your Decimal(1) could perform calculations to > 75 decimal places, the math.atan function downgrades it to a regular > float. > > Unfortunat

Re: Setting longer default decimal precision

2013-11-20 Thread Steven D'Aprano
Hi Kay, You emailed me off-list, but your email address is bouncing or invalid, so I have no way to email you back. Unless you have something private or personal to say, you should keep replies on the list here so that others can either answer your questions or learn from the responses. If you

Re: Setting longer default decimal precision

2013-11-18 Thread Steven D'Aprano
On Mon, 18 Nov 2013 14:14:33 +, Kay Y. Jheallee wrote: > Using 1/3 as an example, [snip examples] > which seems to mean real (at least default) decimal precision is limited > to "double", 16 digit precision (with rounding error). That's because Python floats actually are implemented as C do