DK11 for Python | tatukgis.pdk.TGIS_CSUnits.AsLinear | Constructors | Methods | Properties
Convert units as linear to string representation with proper units symbol.
# Python def AsLinear( self, _value: float, _prec: bool ) -> str:
Name | Type | Description |
---|---|---|
_value | float | units in base metric |
_prec | bool | if true then fixed decimal digits will be presented; if false then only significant digits (no trailing zeros) will be presented |
Type | Description |
---|---|
str | Units converted to string. |
Units of returned string will be autoselected to choose the most adequate is unit is a type of TGIS_CSUnitsType.Auto.