No modif Code tabulation

This commit is contained in:
Philoul 2019-12-12 00:28:08 +01:00
parent 5b36b312ce
commit b9a9fe3a0a

View file

@ -33,13 +33,14 @@ public class SafeParse {
} }
return result; return result;
} }
public static Float stringToFloat(String input) {
Float result = 0f; public static Float stringToFloat(String input) {
input = input.replace(",", "."); Float result = 0f;
try { input = input.replace(",", ".");
result = Float.valueOf(input); try {
} catch (Exception e) { result = Float.valueOf(input);
} } catch (Exception e) {
return result; }
return result;
} }
} }