mui / mui/material-ui

[docs][number field] Number input field precision and decimal step

Open
#47,657 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

docs scope: number field support: question
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Related page

https://mui.com/material-ui/react-number-field/

Kind of issue

Missing information

Issue description

I would love for the demo page here to include an example of having custom decimal precision and decimal step (e.g. a step of 0.25) https://mui.com/material-ui/react-number-field/.

I know @siriwatknp once made it in https://mui-plus.dev/primitive (now closed), so I am guessing it is just a matter of documenting how to?

Right now it seems that the precision defaults to 3 decimal points and if you type in anymore it just truncates the remaining.

Context

Hmm well I just want to control decimal points better :D

Search keywords: Number input field, decimal number input field

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the related Number Field page and review its existing demos and guidance for precision and step behavior. Add a documented example showing custom decimal precision and a decimal step such as 0.25; the page should make the configuration and resulting behavior clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation, frontend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.