ScaledNumber

StockSharp.Fix.Native

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

Конструкторы

ScaledNumber(int, long)

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

exponent
Exponent.
mantissa
Mantissa.

Свойства

AsDecimal : decimal

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

AsDouble : double

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

Методы

op_Addition(ScaledNumber, ScaledNumber) : ScaledNumber

Add the two objects ScaledNumber.

n1
First object ScaledNumber.
n2
Second object ScaledNumber.

Возвращает: The result of addition.

ToString() : string

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

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

Поля

Exponent : int

Exponent.

Mantissa : long

Mantissa.