Skip to content

Retain numeric types across convertTo operations #91

@sffc

Description

@sffc

If you start with a Number Amount, it doesn't seem right to pull a precision out of thin air during convertTo and return it as a IntlMV Amount. You should get back another Number Amount that contains the raw result of a floating point arithmetic operation.

If you started with a IntlMV Amount, then you should get back another IntlMV Amount while retaining precision according to #82.

In other words, the only operation that should transfer you from a floating-point Number to an IntlMV is when setting maximum significant or fraction digits (with a rounding mode), not unit conversion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions