Quantity#
- class ansys.aedt.core.generic.numbers_utils.Quantity(expression, unit=None)#
Stores a number with its unit.
- Parameters:
Methods
Arccosine of the value.
Arcsine of the value.
Quantity.arctan2(other)Arctangent of the value and another quantity.
Return a pair of integers, whose ratio is exactly equal to the original float.
Return self, the complex conjugate of any float.
Cosine of the value.
Quantity.fromhex(string, /)Create a floating-point number from a hexadecimal string.
Quantity.hex(/)Return a hexadecimal representation of a floating-point number.
Return True if the float is an integer.
Logarithm base 10 of the value.
Sine of the value.
Square root of the value.
Tangent of the value.
Quantity.to(unit)Convert the actual number to new unit.
Attributes
the imaginary part of a complex number
Shortcut for dir(self).
the real part of a complex number
Value unit.
Value unit system.
Value number.