How does android recognize decimal parts automatically for dollar numbers?

How does android recognize decimal parts automatically for dollar numbers?

Does anybody know whether android could allow the user to enter dollar
amount without typing "dot" in EditText ? i.e. android could recognize the
decimal part by itself.
For example, if the user wants to enter 24.31, he can just hit "2" -> "4"
-> "3" -> "1", and the edittext will display 24.31 automatically. The user
does not have hit "2", "4", ".", "3", "1" to finish. The program can
assume the last digits are decimal parts.
Thanks.