+ fixes #0001409: implement FreeCAD.Units.Quantity().__float__()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user