avro-kotlin / avro4k

Avro format support for Kotlin
Apache License 2.0
188 stars 36 forks source link

Handle BigDecimal custom rounding mode #162

Closed Chuckame closed 2 months ago

Chuckame commented 10 months ago

Currently, we are not able to set the rounding mode if the given BigDecimal doesn't fit to the expected scale/precision.

Proposal: Add inside ScalePrecision annotation the rounding mode.

(This issue has been created from a commented test, so I written down an issue to track it instead of dead code 😄)