mdpy.unit.Quantity#
- class mdpy.unit.Quantity(value, unit: ~mdpy.unit.unit.Unit = <Unit object: 1.00e+00 >)[source]#
-
Methods
__init__
(value[, unit])- param value:
the value of quantity
convert_to
(target_unit)convert_to converts
self
to the unit oftarget_unit
is_dimension_less
()is_dimension_less judges wether
self
is dimensionlesssqrt
()sqrt returns square root of Quantity
sum
(*keys)Attributes
unit
value