Re: really small values

2007-07-19 Thread [EMAIL PROTECTED]
On Jul 19, 5:11?pm, Zentrader <[EMAIL PROTECTED]> wrote: > On Jul 17, 2:13 pm, "Dee Asbury" <[EMAIL PROTECTED]> wrote: > > > In multiplying a value of xe^-325 with ye^-4, Python is returning zero. How > > do I get it to give me back my tiny value? > > > Thanks! > > Dee > > Also, Python's decimal cl

Re: really small values

2007-07-19 Thread Zentrader
On Jul 17, 2:13 pm, "Dee Asbury" <[EMAIL PROTECTED]> wrote: > In multiplying a value of xe^-325 with ye^-4, Python is returning zero. How > do I get it to give me back my tiny value? > > Thanks! > Dee Also, Python's decimal class allows theoretically unlimited precision. I have extremely limited

Re: really small values

2007-07-18 Thread [EMAIL PROTECTED]
On Jul 17, 4:13?pm, "Dee Asbury" <[EMAIL PROTECTED]> wrote: > In multiplying a value of xe^-325 with ye^-4, Python is returning zero. How > do I get it to give me back my tiny value? Use the right tool for the right job. >>> import gmpy >>> help(gmpy.mpf) Help on built-in function mpf in module g

Re: really small values

2007-07-17 Thread John Machin
On 18/07/2007 7:13 AM, Dee Asbury wrote: > In multiplying a value of xe^-325 with ye^-4, Python is returning zero. > How do I get it to give me back my tiny value? > It is difficult to understand what you mean by xe^-325 etc ... in Python, ^ is the bitwise exclusive-or operator. The power opera

Re: really small values

2007-07-17 Thread Gary Herron
Dee Asbury wrote: > In multiplying a value of xe^-325 with ye^-4, Python is returning zero. How > do I get it to give me back my tiny value? > > Thanks! > Dee > > > Of course, Python is doing no such thing. The floating point arithmetic hardware on your machine is doing the multiplication a

really small values

2007-07-17 Thread Dee Asbury
In multiplying a value of xe^-325 with ye^-4, Python is returning zero. How do I get it to give me back my tiny value? Thanks! Dee "The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'" - Isaac Asimov -- http://mai