Skip to content
Snippets Groups Projects
Commit f46ea75c authored by Daniel Agar's avatar Daniel Agar
Browse files

mag declinataion test switch to ut_compare_float

parent d5852180
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ protected:
/// since it will give you better error reporting of the actual values being compared.
#define ut_compare_float(message, v1, v2, precision) \
do { \
int _p = powf(10.0f, precision); \
int _p = powf(10.0f, precision); \
int _v1 = (int)(v1 * _p + 0.5f); \
int _v2 = (int)(v2 * _p + 0.5f); \
if (_v1 != _v2) { \
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment