Table of Contents

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

exponent int

Exponent.

mantissa long

Mantissa.

Fields

Exponent

Exponent.

public readonly int Exponent

Field Value

int

Mantissa

Mantissa.

public readonly long Mantissa

Field Value

long

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

decimal

AsDouble

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

public double AsDouble { get; }

Property Value

double

Methods

ToString()

public override string ToString()

Returns

string

Operators

operator +(ScaledNumber, ScaledNumber)

Add the two objects ScaledNumber.

public static ScaledNumber operator +(ScaledNumber n1, ScaledNumber n2)

Parameters

n1 ScaledNumber

First object ScaledNumber.

n2 ScaledNumber

Second object ScaledNumber.

Returns

ScaledNumber

The result of addition.