BigFloat?
Vlad Levenfeld via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Feb 17 14:44:21 PST 2015
On Tuesday, 17 February 2015 at 14:03:45 UTC, Kagamin wrote:
> On Tuesday, 17 February 2015 at 09:08:17 UTC, Vlad Levenfeld
> wrote:
>> For my use case I'm less concerned with absolute resolution
>> than with preserving the information in the smaller operand
>> when dealing with large magnitude differences.
>
> What do you mean? As long as you don't change the operand, it
> will preserve its value.
If you add or subtract two floating point numbers whose
magnitudes differ, then the lower bits of the smaller operand
will be lost in the result. If the magnitudes are different
enough, then the result of the operation could even be equal to
the larger operand. In vivo: http://dpaste.dzfl.pl/870c5e61d276
More information about the Digitalmars-d-learn
mailing list