number_with_units#

Hfss3dLayout.number_with_units(value, units=None)[source]#

Convert a number to a string with units. If value is a string, it’s returned as is.

Parameters:
valuefloat, int, str

Input number or string.

unitsoptional

Units for formatting. The default is None which uses modeler units.

Returns:
str

String concatenating the value and unit.