how to convert an edittext to a double in android code example Example: java convert edittext to double double n2Var = Double.parseDouble(n2.getText().toString());