User Tools

Site Tools


api:dk11:delphi:giscsbase.tgis_csunits.aslinear_double_boolean

TGIS_CSUnits.AsLinear method

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

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

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

Syntax

// Delphi
public
  function AsLinear(
    const _value : Double;
    const _prec : Boolean
  ) : String;
// C++ Builder
public:
  UnicodeString AsLinear(
    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

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:15

Page Tools