System.SysUtils.TDoubleHelper.Frac

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Frac: UInt64 read GetFrac write SetFrac;

Properties

Type Visibility Source Unit Parent
property public System.SysUtils.pas System.SysUtils TDoubleHelper

Description

Represents the raw fraction part in the number.

Frac is represented on 52 bits.

Frac represents the UInt64 mantissa of the TDoubleHelper variable. This property provides direct access to the fraction part of the floating-point value.

The number 21, represented in binary, is 10101. After the normalization, the number looks like this: 1.0101 * 2^4. Frac is formed from the bits after the comma: 0101. The Frac is represented on 52 bits, so we fill the 0101 sequence with zeros up to 52 digits.

See Also