Sign in Join
FPDoc Onlineexperiment

TXMLConfig.StrToExtended function

Member of TXMLConfigprotectedIn unit Laz2_XMLCfg

Converts the specified String value to an Extended data type.

Declaration

pascal
function StrToExtended(const s: string; const ADefault: extended)
: extended

Arguments

s

String converted to an Extended value.

ADefault

Default value used when no value can be derived from the string.

Function result

Extended value converted in the method.

Description

StrToExtended converts the specified String value to its representation as an Extended data type.

ADefault contains the default value used in the method when the string is empty or contains an invalid representation for an Extended data type. StrToExtended calls the StrToFloatDef routine to convert the string value using the format settings for the class.

StrToExtended is used in the implementation of the GetExtendedValue method.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.