Difference between revisions of "Core.Terms.FloatLiteral"

From emotive
Jump to navigation Jump to search
Line 9: Line 9:
  
 
== Description ==
 
== Description ==
A '''FloatLiteral''' is the code representation of a value of type Float.
+
A '''FloatLiteral''' is the code representation of a value of type Float. The float literal is specified by the [https://docs.oracle.com/javase/specs/jls/se6/html/lexical.html#3.10.2 §3.10.2 of The Java™ Language Specification].
  
 
The following special values are possible:
 
The following special values are possible:

Revision as of 05:27, 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
    Negative zero
  • Double .PositiveInfinity
    Positive infinity
  • Double .NegativeInfinity
    Negative infinity
  • Double .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

Float Float1 = 0;
Float Float2 = -1.234;
Float Float3 = 78.98797E-23;
Float Float4 = -0;

See also

BooleanLiteral
IntegerLiteral
StringLiteral
ByteFieldLiteral
ListLiteral
MapLiteral
UserExceptionLiteral