Smallfloat and ESmallfloat types

The EGL Smallfloat type is a value type that is the basis of a 32-bit single-precision floating-point value. In Java output, positive values range from 1.40239846e-45 to 3.40282347e+38. In Eclipse IDE for EGL Developers, the type definition for Smallfloat is ESmallfloat.

EGL package name

eglx.lang

Example use
Type detail
In the following detail, the Operation annotation indicates that the specified operation is available. For example, use “==” to compare two values, not “$EQ”. Two exceptions are the widen and narrow operations, which are invoked during data conversions; for example, when the as operator is used.
externalType ESmallfloat extends ENumber type ClassType
/**
 * {@Operation +} A unary plus (has no effect on the numeric value).
 */
   static function $Plus(value ESmallfloat in) 
          returns (ESmallfloat) {@Operation{"+"}};

/**
  * {@Operation +} Adds two numbers.
  */
   static function $Plus(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (ESmallfloat) {@Operation{"+"}};

/**
  * {@Operation -} Negates the value.
  */
   static function $Minus(value ESmallfloat in) 
          returns (ESmallfloat) {@Operation{"-"}};
/**
  * {@Operation -} Subtracts one number from another.
  */
   static function $Minus(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (ESmallfloat) {@Operation{"-"}};

/**
  * {@Operation *} Multiplies two numbers.
  */
   static function $Multiply(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (ESmallfloat) {@Operation{"*"}};

/**
  * {@Operation /} Divides one number by another.
  */
   static function $Divide(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (ESmallfloat) {@Operation{"/"}};

/**
  * {@Operation %} Computes the remainder of dividing one number by another.
  */
   static function $Modulo(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (ESmallfloat) {@Operation{"%"}};

/**
  * {@Operation **} Computes lvalue to the power of rvalue.
  */
   static function $PowerOf(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (EFloat) {@Operation{"**"}};

/**
  * {@Operation <} Compares two numbers.
  */
   static function $LT(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (EBoolean) {@Operation{"<"}};

/**
  * {@Operation >} Compares two numbers.
  */
   static function $GT(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (EBoolean) {@Operation{">"}};

/**
  * {@Operation <=} Compares two numbers.
  */
   static function $LTE(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (EBoolean) {@Operation{"<="}};

/**
  * {@Operation >=} Compares two numbers.
  */
   static function $GTE(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns (EBoolean) {@Operation{">="}};

/**
  * {@Operation ==} Compares two numbers.
  */
   static function $EQ(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns(EBoolean) {@Operation{"=="}};

/**
  * {@Operation !=} Compares two numbers.
  */
   static function $NEQ(lvalue ESmallfloat in, rvalue ESmallfloat in) 
          returns(EBoolean) {@Operation{"!="}};

   static function asNumber(value ESmallfloat in) 
          returns(ENumber) {@Operation{"widen"}};

   static function asSmallfloat(value EDecimal in) 
          returns(ESmallfloat) {@Operation{"widen"}};

/**
  * {@Operation narrow} Converts a string to a smallfloat.  The string is parsed
	 * as follows: It may begin with an optional + or - sign.  After the sign there
	 * must be a sequence of one or more digit characters.  They may be followed by
	 * a decimal point (a period) and one or more digit characters.  It may end with
	 * an exponent, which is the letter e or E, followed by an optional negative sign,
	 * followed by one or more digit characters.
	 *
	 * @throws TypeCastException if the string can't be parsed into a smallfloat.
	 */
   static function asSmallfloat(value EString in) 
          returns(ESmallfloat) {@Operation{"narrow"}};

   static function asSmallfloat(value ESmallint in) 
          returns(ESmallfloat) {@Operation{"widen"}};

   static function asSmallfloat(value EInt in) 
          returns(ESmallfloat) {@Operation{"narrow"}};

   static function asSmallfloat(value EFloat in) 
          returns(ESmallfloat) {@Operation{"narrow"}};

   static function asSmallfloat(value EBigint in) 
          returns(ESmallfloat) {@Operation{"narrow"}};

   static function asSmallfloat(value ENumber in) 
          returns(ESmallfloat) {@Operation{"narrow"}};
end
Comments
Compatibility
Table 1. Compatibility
Target Issue
Java No issues.
JavaScript No issues.