RFA .NET
Real is an 8-byte precision (up to 14 places after the decimal), fixed-placed representation of a numeric having a fractional or exponential part. Real can be used for decimals that have strict requirements on decimal precision, for fractional values, and for exponentials. This class is well-suited for financial data, to avoid the rounding issues between base-2 doubles and base-10 decimals.

Namespace: ThomsonReuters.RFA.Data
Assembly: RFA8_NET110_x64 (in RFA8_NET110_x64.dll) Version: 8.0.1.1

Syntax

C#
public sealed class Real : IDisposable
Visual Basic
Public NotInheritable Class Real _
	Implements IDisposable
Visual C++
public ref class Real sealed : IDisposable
F#
[<SealedAttribute>]
type Real =  
    class
        interface IDisposable
    end

Remarks

Real values have up to 4 bytes of precision with a 63-bit mantissa (the value) and a 5-bit value (the magnitude type) representing 22 exponent values and 9 fractional values. Real has a range of -2^63*10^7 to (2^63-1)*10^7 with an accuracy of 19 to 20 decimal digits. Fewer bytes may be used if the full precision is not needed.

Real uses an extra "hint" byte to specify denominators for fractions, to specify exponents, or to indicate the value is blank. Denominators are in powers of 2 from 1/1 to 1/256. Exponents are powers of 10 from 10^-14 to 10^7. When the value is used in defined data, part of the hint is used to specify the size and part can be used to specify if the Real is blank.

Inheritance Hierarchy

System..::..Object
  ThomsonReuters.RFA.Data..::..Real

See Also