Sign in Join
FPDoc Onlineexperiment

TSingleHelper helper

In unit sysutils

Helper for Single floating point type.

Declaration

pascal
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

BytespublicIndexed access to the individual bytes of the floating point value.
WordspublicIndexed access to the words that make up the floating point value.
SignpublicSign of the floating point value.
ExppublicThe bit pattern of the exponent as stored in memory.
FracpublicBitpattern that makes up the fractional part.

Methods

IsNanpublicCheck whether a value equals NaN.
IsInfinitypublicCheck whether a value is positive or negative infinity.
IsNegativeInfinitypublicCheck whether a value is negative infinity.
IsPositiveInfinitypublicCheck whether a value is positive infinity.
ParsepublicConvert a string to a floating point value.
SizepublicSize (in bytes) of a single-sized floating point value.
ToStringpublicConvert a single-sized floating point value to a string.
TryParsepublicTry to convert a string to a single-sized floating point value.
BuildUppublicBuild a single-sized floating point from its composing parts.
ExponentpublicExponent of the floating-point value.
FractionpublicFraction of the floating-point value.
MantissapublicMantissa of the floating-point.
SpecialTypepublicReturn the type of the single-sized floating point value.

Types and constants

EpsilonpublicPrecision for this floating point type.
MachineEpsilonpublic
MaxValuepublicLargest possible value for the Single floating point type.
MinValuepublicSmallest (negative) possible value for the Single floating point type.
PositiveInfinitypublicPositive infinity as represented by a single floating point type.
NegativeInfinitypublicNegative infinity as represented by a single floating point type.
NaNpublicRepresentation of NaN (Not a Number).

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.