[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Floating point overflow and underflow

On Wed, Jan 8, 2020 at 2:18 PM Shashank Tiwari <shanky.tiwari at gmail.com> wrote:
> Thanks Chris. What if it's pow(2.2,0.45)?

Initialize your Decimals from strings, as you were already advised,
and do the calculation in Decimals.

Or just use floats, since it's likely to be at least as accurate.