No, if that is all you need, then set the numerical global variable the to numerical translated contents of the textObject.
translate a string to a number you do with int(string); or ....
int(textObject.text)
Ok I you talking about something like that : Global number Variable1 = int(textObject.text)?
Let say for example I want to calculate a price with taxes
Variable1 = int(price.text)
Variable2 = float(taxes.text)
Can I get the result with another variable3 which will be variable3 = variable1*variable2?
If so, how to display variable3?