DecimalType class final
The Polars Decimal type: fixed-point numbers.
- Inheritance
-
- Object
- DType
- DecimalType
Constructors
- DecimalType({required int precision, required int scale})
-
Creates a decimal type with
precisiontotal digits (1 to 38) andscalefractional digits (0 toprecision).
Properties
- capabilities → DTypeCapabilities
-
The operations that this binding supports for this type.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
The protocol name of this type, such as
int64orlist.no setteroverride - precision → int
-
Total number of significant digits.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → int
-
Number of digits after the decimal point.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Encodes this descriptor in the native protocol JSON form.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited