Table of Contents

Class DecimalLogicalType

Namespace
AvroSharp.Schemas
Assembly
AvroSharp.dll

The decimal logical type: an arbitrary-precision decimal stored as a scaled two's-complement integer.

public sealed class DecimalLogicalType : AvroLogicalType, IEquatable<DecimalLogicalType>
Inheritance
DecimalLogicalType
Implements
Inherited Members

Properties

Precision

Gets the maximum number of digits.

Scale

Gets the number of digits after the decimal point.

Methods

Equals(DecimalLogicalType?)

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

Equals(object?)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

IsValidFor(AvroSchema)

Returns true when this logical type may annotate schema (for example date on int, or a decimal whose precision fits the fixed size).

MaxPrecisionForFixedSize(int)

Gets the largest precision a fixed of size bytes can hold: floor(log10(2^(8 * size - 1) - 1)).

ToString()

Returns a string that represents the current object.