TParser.TokenFloat

Returns the current token as a float.

Declaration

Source position: classesh.inc line 1824

public 
  function TokenFloat : Extended;

Description

If current token type is toFloat , this method returns the token value as a float.

To specify a negative number, no space must exist between unary minus and number.

Floating point numbers can be postfixed with a character that specifies the floating point type. See FloatType for further information.

Remark

In the input stream the decimal separator, if present, must be a dot (.).

!!!

Errors

If Token isn't toFloat , an EParserError exception is raised.

See also

Name Description
toFloat Value returned by TParser.Token when a floating point value was found in the input stream.
TParser.FloatType The type of a float token.
TParser.NextToken Reads the next token and returns its type.
TParser.Token The type of the current token.

results matching ""

    No results matching ""