git-svn-id: svn://db.shs.com.ru/pip@103 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2015-04-15 14:25:08 +00:00
parent 9435ef726b
commit 368325e53c

View File

@@ -42,8 +42,8 @@ public:
fp & operator =(const double &v) {val = PIFixedPoint(v).val; return *this;} fp & operator =(const double &v) {val = PIFixedPoint(v).val; return *this;}
fp & operator =(const long double &v) {val = PIFixedPoint(v).val; return *this;} fp & operator =(const long double &v) {val = PIFixedPoint(v).val; return *this;}
fp & operator -() {fp p = fp(*this); p.val = -val; return p;} fp & operator -() {fp p = fp(*this); p.val = -val; return p;}
bool operator==(const fp & v) const {val == v.val;} bool operator ==(const fp & v) const {return val == v.val;}
bool operator!=(const fp & v) const {val != v.val;} bool operator !=(const fp & v) const {return val != v.val;}
void operator +=(const fp & v) {val += v.val;} void operator +=(const fp & v) {val += v.val;}
void operator -=(const fp & v) {val -= v.val;} void operator -=(const fp & v) {val -= v.val;}