> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LengthUnit

### *class* ansys.meshing.prime.LengthUnit(\*values)

Length units

### Methods

| Name | Description |
| - | - |
| [`LengthUnit.conjugate`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.conjugate) | Returns self, the complex conjugate of any int. |
| [`LengthUnit.bit_length`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.bit_length)(/) | Number of bits necessary to represent self in binary. |
| [`LengthUnit.bit_count`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.bit_count)(/) | Number of ones in the binary representation of the absolute value of self. |
| [`LengthUnit.to_bytes`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.to_bytes)(/\[, length, byteorder, ...]) | Return an array of bytes representing an integer. |
| [`LengthUnit.from_bytes`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.from_bytes)(/, bytes\[, byteorder, ...]) | Return the integer represented by the given array of bytes. |
| [`LengthUnit.as_integer_ratio`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.as_integer_ratio)(/) | Return a pair of integers, whose ratio is equal to the original int. |
| [`LengthUnit.is_integer`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.is_integer)(/) | Returns True. |

### Attributes

| Name | Description |
| - | - |
| [`LengthUnit.real`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.real) | the real part of a complex number |
| [`LengthUnit.imag`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.imag) | the imaginary part of a complex number |
| [`LengthUnit.numerator`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.numerator) | the numerator of a rational number in lowest terms |
| [`LengthUnit.denominator`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.denominator) | the denominator of a rational number in lowest terms |
| [`LengthUnit.M`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.M) | Denotes length unit is meters. |
| [`LengthUnit.CM`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.CM) | Denotes length unit is centimeters. |
| [`LengthUnit.MM`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.MM) | Denotes length unit is millimeters. |
| [`LengthUnit.UM`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.UM) | Denotes length unit is micrometers. |
| [`LengthUnit.NM`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.NM) | Denotes length unit is nanometers. |
| [`LengthUnit.IN`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.IN) | Denotes length unit is inches. |
| [`LengthUnit.FT`](https://developer.synopsys.com/docs/primemesh/prime-mesh-python-client-library/2026-r1/api/_autosummary/ansys.meshing.prime.LengthUnit.FT) | Denotes length unit is feet. |
