PgRoundingMode enum

Modo de arredondamento de PgDecimal.round, PgDecimal.divide e PgDecimal.rescale.

Inheritance
Available extensions

Values

halfAwayFromZero → const PgRoundingMode

Metade para longe do zero (1,5 → 2; -1,5 → -2), como o round e a divisão do PostgreSQL. É o padrão.

halfEven → const PgRoundingMode

Metade para o par mais próximo (1,5 → 2; 2,5 → 2).

towardZero → const PgRoundingMode

Descarta os dígitos (trunc do PostgreSQL).

awayFromZero → const PgRoundingMode

Para longe do zero sempre que houver dígitos descartados.

floor → const PgRoundingMode

Para baixo (floor).

ceiling → const PgRoundingMode

Para cima (ceil).

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<PgRoundingMode>
A constant List of the values in this enum, in order of their declaration.