+ fixes #0001409: implement FreeCAD.Units.Quantity().__float__()

This commit is contained in:
wmayer
2014-02-14 14:50:01 +01:00
parent 89b5d7e6f1
commit a3056b9d32
3 changed files with 211 additions and 92 deletions

View File

@@ -79,11 +79,11 @@ bool Quantity::operator <(const Quantity& that) const
return (this->_Value < that._Value) ;
}
Quantity Quantity::operator *(const Quantity &p) const
{
return Quantity(this->_Value * p._Value,this->_Unit * p._Unit);
}
Quantity Quantity::operator /(const Quantity &p) const
{
return Quantity(this->_Value / p._Value,this->_Unit / p._Unit);
@@ -99,7 +99,6 @@ Quantity Quantity::pow(const Quantity &p) const
);
}
Quantity Quantity::operator +(const Quantity &p) const
{
if(this->_Unit != p._Unit)