User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_csunits.asangular_double_boolean

Table of Contents

TGIS_CSUnits.AsAngular method

DK for .NET | TatukGIS.NDK.TGIS_CSUnits.AsAngular | Constructors | Methods | Properties

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

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

Syntax

// C#
public string AsAngular(
  double _value,
  bool _prec
);
' VisualBasic
Public Function AsAngular(
  ByVal _value As Double,
  ByVal _prec As Boolean
) As String
// Oxygene
public
  function AsAngular(
    _value : Double;
    _prec : Boolean
  ) : String;

Parameters

Name Type Description
_value double
Double
units in base metric
_prec bool
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
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'

2025/01/31 01:11

Page Tools