Use Qt abstractions of cmath functions.

This commit is contained in:
Jim Evins
2016-12-23 22:09:49 -05:00
parent 34da3fe17c
commit 6dba70dfd1
13 changed files with 25 additions and 62 deletions
+2 -2
View File
@@ -20,7 +20,7 @@
#include "StrUtil.h"
#include <cmath>
#include <QtMath>
namespace
@@ -49,7 +49,7 @@ namespace glabels
for ( i=0; denom[i] != 0.0; i++ )
{
product = x * denom[i];
remainder = fabs(product - ((int)(product+0.5)));
remainder = qFabs(product - ((int)(product+0.5)));
if ( remainder < FRAC_EPSILON ) break;
}