User Tools

Site Tools


api:dk11:delphi:giscsbase.tgis_csunits.asangular_double_boolean

Table of Contents

TGIS_CSUnits.AsAngular method

DK11 for Delphi | GisCsBase.TGIS_CSUnits.AsAngular | Constructors | Methods | Properties

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

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

Syntax

// Delphi
public
  function AsAngular(
    const _value : Double;
    const _prec : Boolean
  ) : String;
// C++ Builder
public:
  UnicodeString AsAngular(
    const double _value,
    const bool _prec
  );

Parameters

Name Type Description
_value Double units in base metric
_prec Boolean if true then fixed decimal digits will be presented; if false then only significant digits (no trailing zeros) will be presented

Result

Type Description
String 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'

2022/11/16 01:15

Page Tools