It showing error
Number Only is not the number, it is a true/false flag controlling the input keyboard.
Use textbox.text to get the number.
Iam almost there
And multiply only numbers
If you are getting the text from a text box, you have control over the GUI.
Add extra text boxes for fractional parts, or use list pickers to identify scale (m/cm)