title: Android - How to parse String to Number with both comma or point as decimal separator
body: <p>I need a function that can parse both 1,123.12 and 1.123,12 to 1123.12
  There are 3 sources for the numbers I use, 1 will always come in US format, 1 will always come in PT_BR (1.123,12) and the third may come in any format depending on the locale of the device how can I correctly parse all of them?</p>
  
  <p>Edit: I don't know which way the number is formatted, I need a function that can receive any of those formats and parse it correctly. Maybe what I need is a way to test in which format is a string that represents a number. Something that will receive "1.123,12" and say that is "PT_BR" and receive 1,123.12 and say that is "US". But I have no idea how to do this especially how to make something like this wok for any location. </p>