rescale_to#
- Variable.rescale_to(units)#
Rescale the expression to a new unit within the current unit system.
- Parameters:
- units
str
Units to rescale to.
- units
Examples
>>> from ansys.aedt.core.application.variables import Variable
>>> v = Variable("10W") >>> assert v.numeric_value == 10 >>> assert v.units == "W" >>> v.rescale_to("kW") >>> assert v.numeric_value == 0.01 >>> assert v.units == "kW"