LengthUnit
Last update: 10.09.2025class ansys.meshing.prime.LengthUnit(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Length units
Methods
| Name | Description |
|---|---|
LengthUnit.conjugate |
Returns self, the complex conjugate of any int. |
LengthUnit.bit_length(/) |
Number of bits necessary to represent self in binary. |
LengthUnit.bit_count(/) |
Number of ones in the binary representation of the absolute value of self. |
LengthUnit.to_bytes(/[, length, byteorder, ...]) |
Return an array of bytes representing an integer. |
LengthUnit.from_bytes(/, bytes[, byteorder, ...]) |
Return the integer represented by the given array of bytes. |
LengthUnit.as_integer_ratio(/) |
Return a pair of integers, whose ratio is equal to the original int. |
LengthUnit.is_integer(/) |
Returns True. |
Attributes
| Name | Description |
|---|---|
LengthUnit.real |
the real part of a complex number |
LengthUnit.imag |
the imaginary part of a complex number |
LengthUnit.numerator |
the numerator of a rational number in lowest terms |
LengthUnit.denominator |
the denominator of a rational number in lowest terms |
LengthUnit.M |
Denotes length unit is meters. |
LengthUnit.CM |
Denotes length unit is centimeters. |
LengthUnit.MM |
Denotes length unit is milimeters. |
LengthUnit.UM |
Denotes length unit is micrometers. |
LengthUnit.NM |
Denotes length unit is nanometers. |
LengthUnit.IN |
Denotes length unit is inches. |
LengthUnit.FT |
Denotes length unit is feet. |