marcocesarato / react-native-input-spinner

An extensible input number spinner component for react-native highly customizable. This component enhance a text input for entering numeric values, with increase and decrease buttons.
https://marcocesarato.github.io/react-native-input-spinner/
GNU General Public License v3.0
414 stars 34 forks source link

Zero is not accepted after decimal separator within numbers having more than 1 decimal places #59

Open Safronus opened 3 years ago

Safronus commented 3 years ago

If more than 1 decimal place is set for numbers, it is problem to write numbers with zero after the separator (Doesn't matter if the comma or dot is used).

Basically, it can accept values such as 50, 50.1, 50.15, 50.2, 50.23, etc no problem… BUT it, unfortunately, strips the 0 from the tenths place. So for example these following values will not work: 50.01, 50.02, 50.03, 50.04, 50.05, 50.06, 50.07, 50.08, 50.09…. and if you try to enter any of these values from my example, it would just change the value to “50”.

shenyuanqing commented 3 years ago

the same

caiomendes23 commented 2 years ago

I have same issue. How to fix this issue?

eduardosoller commented 2 years ago

Same here. I need numbers with zero after the separator for my app. Anybody solved this issue?

neon84 commented 2 years ago

Same here, inputs like 0.1 0.2 doesn't work