format#

Variable.format(fmt: str) str#

Return the string value using the specified numeric format (‘06.2f’).

Returns:
str

Examples

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