1 year ago

#385820

test-img

orcunakkaya

If there is a point in a fractional value from the input whose type is number, the value is not detecting

I'm taking numbers from many inputs and summing them. However, if a number like "15." is written and a fraction is not specified after the period, the value of this entry is perceived as blank. I'm "15." When it is written, I want to detect it as 15 and include it in the total.

enter image description here

enter image description here

html

reactjs

input

sum

0 Answers

Your Answer

Accepted video resources