From 0a49cab2d6ded6d97b8ee565ad13b3ff6565ac81 Mon Sep 17 00:00:00 2001 From: wjoe Date: Fri, 1 Feb 2013 19:16:08 +0000 Subject: Fixed output of negative numbers --- blaconvert.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blaconvert.java b/blaconvert.java index 092d7d4..8dd53ad 100644 --- a/blaconvert.java +++ b/blaconvert.java @@ -237,7 +237,7 @@ public class blaconvert { String fixed = ""; for (int i = 0; i < chars.length; i++) { - if (Character.getNumericValue(chars[i]) < 0 && chars[i] != '.') + if (Character.getNumericValue(chars[i]) < 0 && chars[i] != '.' && chars[i] != '-') { fixed += ","; } else { -- cgit v1.2.3