Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public double checkFloatingPoint(String input) {
- Locale l = Locale.getDefault()
- double output = 0.0;
- switch(l.getLanguage()) {
- case "cs":
- output = Double.parseDouble(input.replace(',', '.'));
- break;
- }
- return output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement