|
Post by jonoke on Jun 23, 2022 3:17:23 GMT
for this test the expected result is
Colour(0.1903200, 0.2379000, 0.1427400)
but I get
Colour(0.1903323, 0.2379154, 0.1427492)
red and green are out of bounds with an epsilon of 0.00001
should I try to track this down? how accurate should this test be?
I'm using F# with floats for everything which are 64bit.
Jonathan.
|
|
|
Post by Jamis on Jun 23, 2022 22:11:51 GMT
You're fine. For simplicity's sake (and to make the tests easier to format in the book), the tests truncate the expected floating point numbers. If you're within that epsilon, it's correct "enough".
|
|