1 parent fec4958 commit 425f0dfCopy full SHA for 425f0df
2 files changed
res/plugin.yml
@@ -1,6 +1,6 @@
1
name: RedLib
2
main: redempt.redlib.RedLib
3
-version: 2022-08-18 18:37
+version: 2022-09-04 18:38
4
author: Redempt
5
api-version: 1.13
6
load: STARTUP
src/redempt/redlib/json/JSONParser.java
@@ -75,8 +75,9 @@ private long integer() {
75
76
private double decimal(long first) {
77
assertChar('.');
78
+ int start = pos;
79
long second = integer();
- double decimal = second * Math.pow(0.1, Math.ceil(Math.log10(second)));
80
+ double decimal = second * Math.pow(0.1, pos - start);
81
return first < 0 ? first - decimal : decimal + first;
82
}
83
0 commit comments