Difference between revisions of "Core.Terms.FloatLiteral"

From emotive
Jump to navigation Jump to search
 
Line 13: Line 13:
 
The following special values are possible:
 
The following special values are possible:
  
* -0
+
* -0.0
 
*: Negative zero
 
*: Negative zero
  
* {{FontColor|blue||Double}}.PositiveInfinity
+
* {{FontColor|blue||Double}}.PositiveInfinity : Infinity
 
*: Positive infinity
 
*: Positive infinity
  
* {{FontColor|blue||Double}}.NegativeInfinity
+
* {{FontColor|blue||Double}}.NegativeInfinity : -Infinity
 
*: Negative infinity
 
*: Negative infinity
  
* {{FontColor|blue||Double}}.NaN
+
* {{FontColor|blue||Double}}.NaN : NaN
 
*: Not-A-number
 
*: Not-A-number
  

Latest revision as of 06:16, 3 May 2019

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