Further details on classes like epsilon compare, further unit tests.

This commit is contained in:
Klaus Basan
2013-04-24 01:59:17 +02:00
parent bd53371de4
commit 472521f281
17 changed files with 187 additions and 70 deletions

View File

@@ -6,6 +6,7 @@
#ifndef BLACKMISC_PQPHYSICALQUANTITY_H
#define BLACKMISC_PQPHYSICALQUANTITY_H
#include "blackmisc/mathematics.h"
#include "blackmisc/pqbase.h"
#include "blackmisc/pqunits.h"
#include "blackmisc/debug.h"
@@ -217,7 +218,8 @@ public:
*/
qint32 convertedSiValueToInteger() const
{
return static_cast<qint32>(CMeasurementUnit::round(this->m_convertedSiUnitValueD, 0));
return static_cast<qint32>(
BlackMisc::Math::CMath::round(this->m_convertedSiUnitValueD, 0));
}
/*!
@@ -255,15 +257,7 @@ public:
*/
void substractUnitValue(double value);
/*!
* \brief Cast as QString
*/
operator QString() const
{
return this->unitValueRoundedWithUnit();
}
/*!
/*!
* \brief Multiply operator *=
* \param multiply
* \return