Quantity defined by a value and a unit. The following constructors are supported: Quantity() -- empty constructor Quantity(Value) -- empty constructor Quantity(Value,Unit) -- empty constructor Quantity(Quantity) -- copy constructor Quantity(string) -- arbitrary mixture of numbers and chars defining a Quantity Quantity toStr([decimals]) returns a string representation rounded to number of decimals. If no decimals are specified then the internal precision is used returns a quantity with the translation factor and a string with the prevered unit returns a floating point value as the provided unit Following parameters are allowed: getValueAs('m/s') # unit string to parse getValueAs(2.45,1) # translation 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 Return the Integral closest to x, rounding half toward even. When an argument is passed, work like built-in round(x, ndigits). Numeric Value of the Quantity (in internal system mm,kg,s) Unit of the Quantity Unit of the Quantity Format of the Quantity