User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_csunits.aslinear_double_wordbool

ITGIS_CSUnits.AsLinear method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_CSUnits.AsLinear | Methods | Properties

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

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

Syntax

// C#
public WideString AsLinear(
  double _value,
  WordBool _prec
);
' VisualBasic
Public Function AsLinear(
  ByVal _value As Double,
  ByVal _prec As WordBool
) As WideString
// Oxygene
public
  function AsLinear(
    _value : Double;
    _prec : WordBool
  ) : WideString;

Parameters

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

Result

Type Description
WideString Units converted to string.

Remarks

Units of returned string will be autoselected to choose the most adequate is unit is a type of TGIS_CSUnitsType.Auto.

References

2022/11/16 01:09

Page Tools