Is this the correct approach to do input validation with floating point values?

后端 未结 4 1492
忘了有多久
忘了有多久 2021-01-22 11:26

After spending a good amount of time researching input validation, I combined a few ideas and came up with this:

Function to check a string for a valid dou

4条回答
  •  花落未央
    2021-01-22 12:30

    Based on the feedback of those who answered and some of the examples in other questions, I answered my own question. As per FailedDev's suggestion, this question should be marked answered. So here is the accepted answer. :)

提交回复
热议问题