Skip to content

min/max decimals #59

Open
Open
@kamerat

Description

@kamerat

I have some thoughts about the :precision="x" prop.
There is a usecase where you have a number of 1, if you have :precision="4", it will look like this: 1,0000. It is really useless to display all the zeroes in my opinion.

I assume there is people and usecases that would like the extra zeroes to be there. However, I would love for it to be an option(prop) to enable/disable showing of zeroes. eg minDecimals="2" and maxDecimals="4". This would output: 1,00 but the user is able to edit the value to the following: 1,9999.

If you also sit the prop :precision="4", sitting 1,99995 would output: 2,00 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions