Originally posted by cafeenman
That code looks pretty good to me. But it looks like it will allow more than one decimal. I'll have to try it and see what happens. It may need a counter added to prevent more than one decimal in the string. Thanks for the feedback.
actually I think it works correctly. otherwise you have to blame the author Francesco Balena for it