Why don't we switch to C like floating pointed arithmetic instead of automatic expansion to reals?
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sat Aug 6 15:32:08 PDT 2016
On 8/6/2016 3:14 PM, David Nadlinger wrote:
> On Saturday, 6 August 2016 at 21:56:06 UTC, Walter Bright wrote:
>> Let me rephrase the question - how does fusing them alter the result?
>
> There is just one rounding operation instead of two.
Makes sense.
> Of course, if floating point values are strictly defined as having only a
> minimum precision, then folding away the rounding after the multiplication is
> always legal.
Yup.
So it does make sense that allowing fused operations would be equivalent to
having no maximum precision.
More information about the Digitalmars-d
mailing list