Consider some input field:
number =
DialogInput[{number = ""},
Column[{"Enter the number", InputField[Dynamic[number], Number],
Button["Proceed", DialogReturn[number], ImageSize -> Automatic]}]]
It is not possible to enter any non-numeric symbol like *
or ^
. In particular, it is not possible to enter large numbers, e.g. 2*10^20
, or 2e20
. Could you please tell me how to change DialogInput to allow such numbers?
One option would be change Number
to String
, and later add ToExpression
. But it seems to me that it is not optimal, and potentially may lead to bugs.