Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public double checkFloatingPoint(String input) {
  2. Locale l = Locale.getDefault()
  3. double output = 0.0;
  4. switch(l.getLanguage()) {
  5. case "cs":
  6. output = Double.parseDouble(input.replace(',', '.'));
  7. break;
  8. }
  9. return output;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement