mag declinataion test switch to ut_compare_float

This commit is contained in:
Daniel Agar
2018-03-26 19:06:58 -04:00
parent d585218060
commit f46ea75c9d
2 changed files with 485 additions and 482 deletions
+1 -1
View File
@@ -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) { \
File diff suppressed because it is too large Load Diff