Creating Better Input Boxes的副本

How does one create an input box for numeric values? This is a simple example of how to create a blank Input Box for numeric input. The number r is parsed from a text value to a number. A full sample is done to allow the user to see all steps.
Finally decided to get this down pat. Thanks forum members. Post subject: Input box value resets to linked variables old value