Floating point overflow and underflow
Thanks everyone. Much appreciated.
On Tue, Jan 7, 2020, 7:46 PM Shashank Tiwari <shanky.tiwari at gmail.com>
> Yes, I tried this and it worked. I was wondering if I could use the output
> of pow (or math.pow).
> On Tue, Jan 7, 2020, 7:41 PM Michael Torrie <torriem at gmail.com> wrote:
>> On 1/7/20 8:18 PM, Shashank Tiwari wrote:
>> > Thanks Chris. What if it's pow(2.2,0.45)?
>> Why not do some more experimentation:
>> >>> import decimal
>> >>> a = decimal.Decimal('2.2')
>> >>> b = decimal.Decimal('0.45')
>> >>> a ** b
>> Is this what you mean? I'm sure there are other ways as well.