44 #include <px4_platform_common/defines.h> 50 float diff = fabsf(a - b);
53 printf(
"not equal ->\n\ta: %12.8f\n\tb: %12.8f\n",
double(a),
double(b));
56 }
else {
return true; }
65 printf(
"not a > b ->\n\ta: %12.8f\n\tb: %12.8f\n",
double(a),
double(b));
76 printf(
"not a < b ->\n\ta: %12.8f\n\tb: %12.8f\n",
double(a),
double(b));
87 printf(
"not a >= b ->\n\ta: %12.8f\n\tb: %12.8f\n",
double(a),
double(b));
98 printf(
"not a <= b ->\n\ta: %12.8f\n\tb: %12.8f\n",
double(a),
double(b));
111 if (!PX4_ISFINITE(num)) {
117 if (fabsf(num) < 1.0e-38
f) {
123 exp = log10f(fabsf(num));
138 for (
int i = 0; i <
abs(exp); i++) { sig /= 10; }
141 for (
int i = 0; i <
abs(exp); i++) { sig *= 10; }
void __EXPORT float2SigExp(const float &num, float &sig, int &exp)
Dual< Scalar, N > ceil(const Dual< Scalar, N > &a)
bool __EXPORT less_than_or_equal(float a, float b)
bool __EXPORT equal(float a, float b, float epsilon)
bool __EXPORT less_than(float a, float b)
bool __EXPORT greater_than(float a, float b)
Vector< float, 6 > f(float t, const Matrix< float, 6, 1 > &, const Matrix< float, 3, 1 > &)
bool __EXPORT greater_than_or_equal(float a, float b)
Dual< Scalar, N > abs(const Dual< Scalar, N > &a)
Dual< Scalar, N > floor(const Dual< Scalar, N > &a)