• Floating point errors


I would like to give some feedback about ...

From: http://www.checkio.org/mission/oil-pie/solve/

The task is asking for a a fraction, but is requiring it to be expressed in a particular way. The function I wrote yields [876385567049605.000000, 6885731249082244.000000], but the task expects [2.4183843043037004e+21, 1.9001162276662057e+22]. These two fractions differ by approximately 2*10^-16. Right now the task is checking for whether you got the answer in one of a specific set of ways, rather than whether you got the answer.


Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36