Table of Contents

BiffNumberRecord Struct

Definition

Namespace
Bodu.IO.Biff
Assembly
Bodu.IO.Biff.dll
Package
Bodu.IO.Biff 1.0.0
Source
BiffNumberRecord.cs

Represents a decoded NUMBER record: a cell holding an IEEE 754 double-precision value.

public readonly struct BiffNumberRecord : IEquatable<BiffNumberRecord>
Implements
Inherited Members
Extension Methods

Remarks

The record identifier is Number. The payload is fourteen bytes in both versions: the row, column, and extended-format index as 16-bit values, then the value as a little-endian IEEE 754 double.

Constructors

BiffNumberRecord(int, int, ushort, double)

Represents a decoded NUMBER record: a cell holding an IEEE 754 double-precision value.

public BiffNumberRecord(int Row, int Column, ushort XfIndex, double Value)

Parameters

Row int

The zero-based row index.

Column int

The zero-based column index.

XfIndex ushort

The extended-format index of the cell.

Value double

The cell value.

Remarks

The record identifier is Number. The payload is fourteen bytes in both versions: the row, column, and extended-format index as 16-bit values, then the value as a little-endian IEEE 754 double.

See Also

Properties

Column

The zero-based column index.

public int Column { get; init; }

Property Value

int

Row

The zero-based row index.

public int Row { get; init; }

Property Value

int

Value

The cell value.

public double Value { get; init; }

Property Value

double

XfIndex

The extended-format index of the cell.

public ushort XfIndex { get; init; }

Property Value

ushort

Methods

Deconstruct(out int, out int, out ushort, out double)

public void Deconstruct(out int Row, out int Column, out ushort XfIndex, out double Value)

Parameters

Row int
Column int
XfIndex ushort
Value double

Equals(BiffNumberRecord)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BiffNumberRecord other)

Parameters

other BiffNumberRecord

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(BiffNumberRecord, BiffNumberRecord)

public static bool operator ==(BiffNumberRecord left, BiffNumberRecord right)

Parameters

left BiffNumberRecord
right BiffNumberRecord

Returns

bool

operator !=(BiffNumberRecord, BiffNumberRecord)

public static bool operator !=(BiffNumberRecord left, BiffNumberRecord right)

Parameters

left BiffNumberRecord
right BiffNumberRecord

Returns

bool

Applies to

ProductVersions
.NET8, 10

See Also