Struct ScaledNumber
- Namespace
- StockSharp.Fix.Native
- Assembly
- StockSharp.Fix.Core.dll
Scaled numbers, like floating point numbers are represented as a mantissa and an exponent.
public struct ScaledNumber
- Inherited Members
- Extension Methods
Constructors
ScaledNumber(int, long)
Initializes a new instance of the ScaledNumber.
public ScaledNumber(int exponent, long mantissa)
Parameters
Fields
Exponent
Exponent.
public readonly int Exponent
Field Value
Mantissa
Mantissa.
public readonly long Mantissa
Field Value
Properties
AsDecimal
The numerical value is obtained by multiplying the mantissa with the base-10 power of the exponent.
public decimal AsDecimal { get; }
Property Value
AsDouble
The numerical value is obtained by multiplying the mantissa with the base-10 power of the exponent.
public double AsDouble { get; }
Property Value
Methods
ToString()
public override string ToString()
Returns
Operators
operator +(ScaledNumber, ScaledNumber)
Add the two objects ScaledNumber.
public static ScaledNumber operator +(ScaledNumber n1, ScaledNumber n2)
Parameters
n1
ScaledNumberFirst object ScaledNumber.
n2
ScaledNumberSecond object ScaledNumber.
Returns
- ScaledNumber
The result of addition.