diff options
author | wjoe <joe@lc8n.com> | 2013-02-01 19:16:08 +0000 |
---|---|---|
committer | wjoe <joe@lc8n.com> | 2013-02-01 19:16:08 +0000 |
commit | 0a49cab2d6ded6d97b8ee565ad13b3ff6565ac81 (patch) | |
tree | bec68844493d7515685ebf89c08867e7ff9964a2 /blaconvert.java | |
parent | 61db0327383a6593a9ac7fcf879bd6aa3888b40d (diff) |
Fixed output of negative numbers
Diffstat (limited to 'blaconvert.java')
-rw-r--r-- | blaconvert.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |