Skip to content

Different precision in currency templates #3

@hkdobrev

Description

@hkdobrev

Most countries use two digits after the floating point for visualizing prices and amounts.

But some countries do not use floating points as they don't have two nominations of their currency (dollars and cents), but they only have one. Like the Chilean peso.

Other countries need more specificity and use three digits after the floating point. Like the dinars from the Middle East.

Right now you could specify a precision to be used for all amount representations from the Monetary::format() method.

But it would be helpful not only to be able to specify different precision every time you format, but the currency templates should support a precision number.

Here is an ISO standard for the currency representations: ISO 4217

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions