- Real operator+(float f) {return Real(value+f);}
- Real operator-(float f) {return Real(value+f);}
- Real operator/(float f) {return Real(value/f);}
- Real operator*(float f) {return Real(value*f);}
- Real operator+(const Real & r) {return this->operator+(r.value);}
- Real operator-(const Real & r) {return this->operator-(r.value);}
- Real operator*(const Real & r) {return this->operator*(r.value);}
- Real operator/(const Real & r) {return this->operator/(r.value);}
+ Real operator+(float f) const {return Real(value+f);}
+ Real operator-(float f) const {return Real(value+f);}
+ Real operator/(float f) const {return Real(value/f);}
+ Real operator*(float f) const {return Real(value*f);}
+ Real operator+(const Real & r) const {return Real(this->value + r.value);}
+ Real operator-(const Real & r) const {return Real(this->value - r.value);}
+ Real operator*(const Real & r) const {return Real(this->value * r.value);}
+ Real operator/(const Real & r) const {return Real(this->value / r.value);}
+ Real & operator+=(const Real & r) {this->value += r.value; return *this;}
+ Real & operator-=(const Real & r) {this->value -= r.value; return *this;}
+ Real & operator/=(const Real & r) {this->value /= r.value; return *this;}
+ Real & operator*=(const Real & r) {this->value *= r.value; return *this;}
+