107 virtual double GetRounded(
const double& value)
const override;
108 virtual bool AreValuesEqual(
const double& value1,
const double& value2)
const override;
109 virtual bool IsSmaller(
const double& value1,
const double& value2)
const override;
110 virtual bool IsSmallerEqual(
const double& value1,
const double& value2)
const override;
112 virtual double GetBiggerValue(
const double& value)
const override;
113 virtual QString
GetString(
const double& value)
const override;
114 virtual bool GetParsed(
const QString& text,
double& result)
const override;
136 m_pointChar = pointChar;
150 return value1 == value2;
156 return value1 < value2;
162 return value1 <= value2;
168 return value - 0.001;
174 return value + 0.001;
Simple implementation of double value manipulator without rounding or quantization.
virtual double GetRounded(const double &value) const override
Get the nearest value rounded used this arithmetik.
virtual double GetSmallerValue(const double &value) const override
Return biggest value smaller that specified one.
char GetPointChar() const
Get point character.
virtual bool AreValuesEqual(const double &value1, const double &value2) const override
Compare two values and check, if there are equal.
virtual bool IsSmallerEqual(const double &value1, const double &value2) const override
Compare two values and check, if first one is smaller or equal as the second.
virtual bool GetParsed(const QString &text, double &result) const override
Get value converted from string.
virtual bool IsSmaller(const double &value1, const double &value2) const override
Compare two values and check, if first one is smaller as the second.
void SetPointChar(char pointChar)
Set point character.
virtual QString GetString(const double &value) const override
Get this value as string.
virtual int GetPrecision() const override
Get number of digits after point.
virtual double GetBiggerValue(const double &value) const override
Return smallest value bigger that specified one.
Interface for all manipulation using values represent as double.
Package with mathematical functions and algebraical primitives.