floating point comparison basics
Gary Willoughby
dev at nomad.so
Wed Dec 4 01:13:14 PST 2013
On Tuesday, 3 December 2013 at 23:50:34 UTC, ed wrote:
> I found a great set of articles which I'm working through now.
> http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm
This is the exact source i used to implement the assertApprox
function in the DUnit toolkit. See the unit tests for examples.
https://github.com/nomad-software/dunit/blob/master/source/dunit/toolkit.d#L42-L112
More information about the Digitalmars-d-learn
mailing list