DiyDouble

Namespace: SnowBank.Numerics · struct

Implements: IEquatable<DiyDouble>, IFormattable

Constructors

DiyDouble

DiyDouble(double d)

DiyDouble(ulong r)

Properties

Exponent

int Exponent { get; }

IsDenormal

bool IsDenormal { get; }

IsInfinite

bool IsInfinite { get; }

IsInteger

bool IsInteger { get; }

IsNaN

bool IsNaN { get; }

IsNegative

bool IsNegative { get; }

IsSpecial

bool IsSpecial { get; }

Sign

int Sign { get; }

Significand

ulong Significand { get; }

Methods

Equals

bool Equals(object obj)

bool Equals(DiyDouble other)

FromRaw

static double FromRaw(ulong raw)

GetHashCode

int GetHashCode()

NextDouble

double NextDouble()

Returns the next greater double.

Returns +infinity on input +infinity.

static double NextDouble(double value)

Returns the next greater double.

Returns +infinity on input +infinity.

NormalizedBoundaries

void NormalizedBoundaries(out DiyFp minus, out DiyFp plus)

PreviousDouble

double PreviousDouble()

Returns the previous smaller double.

Returns -infinity on input -infinity.

static double PreviousDouble(double value)

Returns the previous smaller double.

Returns -infinity on input -infinity.

ToDiyFp

DiyFp ToDiyFp()

ToDouble

double ToDouble()

ToNormalized

DiyFp ToNormalized()

ToRaw

static ulong ToRaw(double f)

ToString

string ToString()

string ToString(string format, IFormatProvider formatProvider)

ToUInt64

ulong ToUInt64()

UpperBoundary

DiyFp UpperBoundary()

Fields

DenormalExponent

const int DenormalExponent

ExponentBias

const int ExponentBias

ExponentMask

const ulong ExponentMask

ExponentOffset

const int ExponentOffset

HiddenBit

const ulong HiddenBit

Infinity

const ulong Infinity

MaxExponent

const int MaxExponent

NaN

const ulong NaN

PhysicalSignificandSize

const int PhysicalSignificandSize

Raw

readonly ulong Raw

SignMask

const ulong SignMask

SignificandMask

const ulong SignificandMask

SignificandSize

const int SignificandSize

Value

readonly double Value