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.