From d3b32d87f03dc17b24e85cd5fe15614dde482073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Wed, 14 Sep 2016 22:20:28 +0200 Subject: [PATCH] Fix of compilation error - change double to float. --- .../java/pl/tpolgrabia/urbanexplorer/utils/NumberUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/pl/tpolgrabia/urbanexplorer/utils/NumberUtils.java b/app/src/main/java/pl/tpolgrabia/urbanexplorer/utils/NumberUtils.java index 4de8350..b301575 100644 --- a/app/src/main/java/pl/tpolgrabia/urbanexplorer/utils/NumberUtils.java +++ b/app/src/main/java/pl/tpolgrabia/urbanexplorer/utils/NumberUtils.java @@ -41,7 +41,7 @@ public class NumberUtils { String trimmed = s.trim(); try { - return Double.parseDouble(trimmed); + return Float.parseFloat(trimmed); } catch (NumberFormatException e) { return null; }