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.