decompose#

Variable.decompose() tuple#

Decompose the evaluated expression into a floating-point number and units.

Returns:
tuple

The float value of the variable and the units exposed as a string.

Examples

>>> from ansys.aedt.core.application.variables import Variable
>>> var = Variable("10mm")
>>> var.decompose()