-1
Good evening, I am developing a small project that calculates some physics movements, like uniform movement, circular etc.
The intention is to calculate in real time, that is, after the user type in a gap, if possible, the program completes the others automatically, calculating. But when you type something and then delete it, leaving it empty, he understands that the value of that gap is 0, and no longer needs to complete it, because it has already been provided (the program understands that it is empty and needs to be calculated when it is == Undefined).
I could make a code saying that when the input is 0, it gets Undefined, but when the user really wants to provide the value 0, the program will find that it needs to calculate that gap, when in fact it doesn’t need :P
There is a way to differentiate an empty input from an input with 0?
That’s it! Thank you very much, it worked!
– Murilo Junqueira