User Tools

Site Tools


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

TGIS_CSUnits.AsLinear method

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

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

Available also on: Delphi | Java | ActiveX.

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

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

References

2020/05/21 01:10

Page Tools