[46 / 5 / ?]
Quoted By:
Hi /g/.
I'm working on a C++ project. What I need to do is check if the input is a valid float number in a function.
Now making it into a function is easy, so my problem is just understanding how to bugcheck something that may contain a decimal and a minus sign.
The function should also return the value inputted if it was correct. For example, I got the framework for the function below in the pastebin link.
http://pastebin.com/wagRZafL
Thank you very much any help you can give, Anon.
I'm working on a C++ project. What I need to do is check if the input is a valid float number in a function.
Now making it into a function is easy, so my problem is just understanding how to bugcheck something that may contain a decimal and a minus sign.
The function should also return the value inputted if it was correct. For example, I got the framework for the function below in the pastebin link.
http://pastebin.com/wagRZafL
Thank you very much any help you can give, Anon.