[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

TSingleHelper

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Helper for Single floating point type

Declaration

Source position: syshelph.inc line 181

type TSingleHelper = type helper end;

  function GetB();

  function GetW();

  function GetE;

  function GetF;

  function GetS;

  procedure SetB();

  procedure SetW();

  procedure SetE();

  procedure SetF();

  procedure SetS();

public

Const

  Epsilon = Epsilon; = 1.4012984643248170709e-45

  

Precision for this floating point type

  MaxValue = MaxValue; = 340282346638528859811704183484516925440.0

  

Largest possible value for the Single floating point type

  MinValue = MinValue; = -340282346638528859811704183484516925440.0

  

Smallest (negative) possible value for the Single floating point type

  PositiveInfinity = PositiveInfinity; = 1.0 / 0.0

  

Positive infinity as represented by a single floating point type

  NegativeInfinity = NegativeInfinity; = (-1.0) / 0.0

  

Negative infinity as represented by a single floating point type

  NaN = NaN; = 0.0 / 0.0

  

Representation of NaN (Not a Number)

  class function IsNan();

  

Check whether a value equals NaN.

  class function IsInfinity();

  

Check whether a value is positive or negative infinity.

  class function IsNegativeInfinity();

  

Check whether a value is negative infinity.

  class function IsPositiveInfinity();

  

Check whether a value is positive infinity.

  class function Parse();

  

Convert a string to a floating point value

  class function Size;

  

Size (in bytes) of a single-sized floating point value.

  class function ToString();

  

Convert a single-sized floating point value to a string

  class function TryParse();

  

Try to convert a string to a single-sized floating point value.

  procedure BuildUp();

  

Build a single-sized floating point from its composing parts

  function Exponent;

  

Exponent of the floating-point value

  function Fraction;

  

Fraction of the floating-point value

  function Mantissa;

  

Mantissa of the floating-point

  function SpecialType;

  

Return the type of the single-sized floating point value

  property Bytes []: Byte; [rw]

  

Indexed access to the individual bytes of the floating point value

  property Words []: Word; [rw]

  

Indexed access to the words that make up the floating point value

  property Sign: Boolean; [rw]

  

Sign of the floating point value

  property Exp: QWord; [rw]

  

The bit pattern of the exponent as stored in memory.

  property Frac: QWord; [rw]

  

Bitpattern that makes up the fractional part.

Inheritance

TSingleHelper

  

Helper for Single floating point type

Description

TSingleHelper is the helper type for the single-sized floating point type. It contains some conversion methods, as well as access to the low-level structure of the floating-point representation of a single.

See also

TDoubleHelper

  

Helper for Double floating point type

TExtendedHelper

  

Helper for Extended floating point type


Documentation generated on: Mar 17 2017