Skip to content

What's the best form input field for floats? #1827

Answered by mturoci
ledell asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Erin, try setting the step attribute to a float value (e.g. step=0.1) when using spinbox. This should allow for floats with the precision you need. Defaults to 1.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@DeeJaayArgh
Comment options

@mturoci
Comment options

Answer selected by ledell
Comment options

You must be logged in to vote
4 replies
@mturoci
Comment options

@mturoci
Comment options

@ledell
Comment options

@DeeJaayArgh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants