Redigera

Dela via


BlobReader.ReadDecimal Method

Definition

Reads a Decimal number.

public:
 System::Decimal ReadDecimal();
public decimal ReadDecimal ();
member this.ReadDecimal : unit -> decimal
Public Function ReadDecimal () As Decimal

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