Skip to content
Snippets Groups Projects
Select Git revision
  • 5a74efa8c76e9ee7dcdf7b76478a09e774de7de6
  • master default protected
  • features/protected_stack
3 results

rapidjson

user avatar
Esther Wang authored
One of multipleOf test failed because most floating-point numbers end
up being slightly imprecise. And, the check of multipleOf with two
double numbers using the dividend (a) and the result of multiplying
the multiple after rounding down by the divisor (floor(|a|/|b|)*b) to
compare.

Change to using std::numeric_limits::epsilon to check the error of
the division result.
5a74efa8
History
Name Last commit Last update