Skip to content

Decimal field formatting is not consistent #1594

@Toutouwai

Description

@Toutouwai

Short description of the issue

In the screenshot below, the "Price" and "Ten price" fields have identical configurations, with two digits present after the decimal.

2022-07-07_145603

The formatting of these decimal values is not consistent. If the rule is "redundant decimal places are not shown" then the values shown should be "8" and "7.2", or if the rule is "redundant decimal places are shown" then the values shown should be "8.00" and "7.20".

The formatting should follow a consistent rule, and it would be great if this was a configurable option. Using a decimal field for prices will be a really common need, and often it will be desirable to always show the decimal places, e.g. "8.00".

And this falls into the category of request rather than issue, but given that prices are a common need it would be handy to have the option to prefix the inputfield with a currency symbol, e.g.

2022-07-07_150242

Setup/Environment

  • ProcessWire version: 3.0.201

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