Confusion Concerning Numerical Equation
Avery Stupidman
stupidman at stupid.man
Sat Nov 16 10:24:12 UTC 2019
On Saturday, 16 November 2019 at 10:17:12 UTC, drug wrote:
> 16.11.2019 13:01, Avery Stupidman пишет:
>> [...]
> In general you shouldn't compare floating point values for
> equality because of their nature, you can use something like
> approxEqual https://dlang.org/library/std/math/approx_equal.html
>
> P.S. see also https://floating-point-gui.de/errors/comparison/
Yup, I'm dumb. Thank you very much for the help and the link. I
should know better. Also apologies for the un-concise example.
More information about the Digitalmars-d-learn
mailing list