Skip to content

Too many trailing zeros causes panic on serialization #729

@adamflush

Description

@adamflush

Should rust_decimal really panic if it encounters too many trailing zeros?

Postgres has a bad habit of adding zeros to numeric types, which makes it hard to use with rust_decimal when rust_decimal panics on too many trailing zeros.

Adding trim_scale() to every output is easy to forget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions