sealed class Tinman.Core.Cx.Expressions.CxLiteralFloat

Derived from

CxLiteral abstract

A literal that represents a floating-point number value (see Parse.Number.

       \__ optional type suffix
     \____ optional exponent sign
    \_____ optional exponent part
  \_______ optional decimal part
\_________ optional minus for negative value

Public / Constructors


public constructor CxLiteralFloat → (2)

value in : float64

See ValueFloat and ValueDouble.

suffix opt : bool = false

See Suffix.

Creates a new instance of CxLiteralFloat.

Public / Attributes


public attribute Suffix → (get,set)

value : bool

true if this literal has the suffix,
false if it does not have the suffix.

Does this literal have the f suffix, forcing it to CxTypeSimple.Float?


public attribute ValueDouble → (get,set)

value : float64

The literal value, as a 64-bit floating-point number.

The literal value.


public attribute ValueFloat → (get,set)

value : float32

The literal value, as a 32-bit floating-point number.

The literal value.