Core.Terms.FloatLiteral
Jump to navigation
Jump to search
Classification
Name | FloatLiteral |
Short Description | Literal of type Float |
Class | Term |
Extension | OTX Core library |
Group | Literal related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
Value = literal
Description
A FloatLiteral is the code representation of a value of type Float. The float literal is specified by the §3.10.2 of The Java™ Language Specification.
The following special values are possible:
- -0.0
- Negative zero
- Double .PositiveInfinity : Infinity
- Positive infinity
- Double .NegativeInfinity : -Infinity
- Negative infinity
- Double .NaN : NaN
- Not-A-number
Properties
Name | Data Type | Class | Default | Cardinality | Description |
Literal | Float | Literal | - | [1] | Designation of a floating-point number in c# notation. |
OTL Examples
/// Local Declarations
Float Float1 = 0.0;
Float Float2 = 1.234;
Float Float3 = -1.234;
Float Float4 = 7.898797E-22;
/// Flow
Float1 = -0.0;
Float2 = Infinity;
Float3 = -Infinity;
Float4 = NaN;
See also
BooleanLiteral
IntegerLiteral
StringLiteral
ByteFieldLiteral
ListLiteral
MapLiteral
UserExceptionLiteral