FlameDuck #1 Or simply TextFieldText(gadget).toDouble()Additionally, you may want to be sure that no non-numeric values are written to the TextField.