No modif Code tabulation
This commit is contained in:
parent
5b36b312ce
commit
b9a9fe3a0a
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue