User Tools

Site Tools


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

TGIS_CSUnits.AsLinear method

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

Convert a linear value to a string representation with the appropriate unit symbol.

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

Syntax

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

Parameters

Name Type Description
_value double
Double
Value in base linear units.
_prec bool
Boolean
If True, fixed decimal digits are used; if False, only significant digits are shown without trailing zeros.

Result

Type Description
string
String
Formatted value with unit symbol.

Remarks

If the unit type is TGIS_CSUnitsType.Auto, the returned string uses an automatically selected linear subunit.

References

2026/07/11 00:56

Page Tools