+ fixes #0001410: Base::Quantity::getValueAs does not properly check the dimension

This commit is contained in:
wmayer
2014-02-14 17:14:39 +01:00
parent e08635b1e8
commit 3ce05cd4ff
2 changed files with 62 additions and 31 deletions

View File

@@ -41,7 +41,7 @@ Quantity(string) -- arbitrary mixture of numbers and chars defining a Quantity
Following parameters are allowed:
getValueAs('m/s') # unit string to parse
getValueAs(2.45,1) # translatrion value and unit signatur
getValueAs(2.45,1) # translatrion value and unit signature
getValueAs(FreeCAD.Units.Pascal) # predefined standard units
getValueAs(Qantity('N/m^2')) # a quantity
getValueAs(Unit(0,1,0,0,0,0,0,0)) # a unit