BlobReader.ReadDecimal Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.