User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_csunits.asangular_double_boolean

Table of Contents

TGIS_CSUnits.AsAngular method

DK11 for Python | tatukgis.pdk.TGIS_CSUnits.AsAngular | Constructors | Methods | Properties

Convert units as annular to string representation with proper units symbol.

Available also on: Delphi | .NET | Java | ActiveX.

Syntax

# Python
def AsAngular(
  self,
  _value: float,
  _prec: bool
) -> str: 

Parameters

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

Result

Type Description
str Units converted to string.

Remarks

Value will always be converted to normal numeric form. So if units are degrees then result for '15 degrees and 30 seconds' will always be '15.50 deg'

2023/08/09 01:53

Page Tools