FPDoc Online › RTL › sysutils › TSingleHelper TSingleHelper helper Source Save as PDF In unit sysutils
Helper for Single floating point type.
Declaration pascal Copy
TSingleHelper = class
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 Properties Bytespublic Indexed access to the individual bytes of the floating point value. Wordspublic Indexed access to the words that make up the floating point value. Signpublic Sign of the floating point value. Exppublic The bit pattern of the exponent as stored in memory. Fracpublic Bitpattern that makes up the fractional part.
Methods IsNanpublic Check whether a value equals NaN. IsInfinitypublic Check whether a value is positive or negative infinity. IsNegativeInfinitypublic Check whether a value is negative infinity. IsPositiveInfinitypublic Check whether a value is positive infinity. Parsepublic Convert a string to a floating point value. Sizepublic Size (in bytes) of a single-sized floating point value. ToStringpublic Convert a single-sized floating point value to a string. TryParsepublic Try to convert a string to a single-sized floating point value. BuildUppublic Build a single-sized floating point from its composing parts. Exponentpublic Exponent of the floating-point value. Fractionpublic Fraction of the floating-point value. Mantissapublic Mantissa of the floating-point. SpecialTypepublic Return the type of the single-sized floating point value.
Types and constants Epsilonpublic Precision for this floating point type. MachineEpsilonpublic MaxValuepublic Largest possible value for the Single floating point type. MinValuepublic Smallest (negative) possible value for the Single floating point type. PositiveInfinitypublic Positive infinity as represented by a single floating point type. NegativeInfinitypublic Negative infinity as represented by a single floating point type. NaNpublic Representation of NaN (Not a Number).
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.