I'm creating a financial control app, it's a college project, where it shows the value in the form I made a TextView to be clicked open a Dialog where I created a custom keyboard to put the value, when the user adds the value and click ok the value passes to TextView exactly as the user passed the value, what I want to do is treat this value, but I do not know how to handle this value since I have always worked with C # and I have now started android, ex: if the user add a value without a comma I want the string to be added, 00. if the user add a value ex: 15.5 I want to add after 5 + a 0.