CxLiteralFloat

Description

sealed class Tinman.Core.Cx.Expressions.CxLiteralFloat

Derived from

CxLiteral abstract

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

-1.2e+3f
-1.2e+3F
-1.2E+3f
-1.2E+3F
       \__ optional type suffix
     \____ optional exponent sign
    \_____ optional exponent part
  \_______ optional decimal part
\_________ optional minus for negative value

Public / Constructors

Cx​Literal​Float


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

Suffix


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?

Value​Double


public attribute ValueDouble → (get,set)

value : float64

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

The literal value.

Value​Float


public attribute ValueFloat → (get,set)

value : float32

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

The literal value.