avro-kotlin / avro4k

Avro format support for Kotlin
Apache License 2.0
197 stars 37 forks source link

Handle BigDecimal custom rounding mode #162

Closed Chuckame closed 7 months ago

Chuckame commented 1 year 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 😄)