ScaledNumber

StockSharp.Fix.Native

Scaled numbers, like floating point numbers are represented as a mantissa and an exponent.

Constructors

ScaledNumber
public ScaledNumber(int exponent, long mantissa)
scaledNumber = ScaledNumber(exponent, mantissa)

Scaled numbers, like floating point numbers are represented as a mantissa and an exponent.

exponent
Exponent.
mantissa
Mantissa.

Properties

AsDecimal
public decimal AsDecimal { get; }
value = scaledNumber.AsDecimal

The numerical value is obtained by multiplying the mantissa with the base-10 power of the exponent.

AsDouble
public double AsDouble { get; }
value = scaledNumber.AsDouble

The numerical value is obtained by multiplying the mantissa with the base-10 power of the exponent.

Methods

op_Addition
public static ScaledNumber op_Addition(ScaledNumber n1, ScaledNumber n2)
result = ScaledNumber.op_Addition(n1, n2)

Add the two objects ScaledNumber.

n1
First object ScaledNumber.
n2
Second object ScaledNumber.

Returns: The result of addition.

ToString
public override string ToString()
result = scaledNumber.ToString()

Преобразовать к строковому представлению.

Returns: Строковое представление.

Fields

Exponent
public readonly int Exponent
value = scaledNumber.Exponent

Exponent.

Mantissa
public readonly long Mantissa
value = scaledNumber.Mantissa

Mantissa.