Edit

Share via


BlobReader.ReadDecimal Method

Definition

Reads a Decimal number.

public decimal ReadDecimal();

Returns

Exceptions

The data at the current position was not a valid Decimal number.

Remarks

Decimal number is encoded in 13 bytes as follows:

  • byte 0: highest bit indicates sign (1 for negative, 0 for non-negative); the remaining 7 bits encode scale.
  • bytes 1..12: 96-bit unsigned integer in little endian encoding.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)