unscuff js code

This commit is contained in:
Leijurv 2019-10-05 19:49:38 -07:00
parent 6e1e355a61
commit 06805057d4
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -44,10 +44,7 @@ public enum RelativeCoordinate implements IDatatypePost<Double, Double> {
double offset = matcher.group(2).isEmpty() ? 0 : Double.parseDouble(matcher.group(2).replaceAll("k", ""));
if (matcher.group(2).contains("k")) {
String newString = matcher.group(2).replaceAll("k", "");
double convertedNumber = Double.parseDouble(newString);
convertedNumber = convertedNumber * 1000;
offset = convertedNumber;
offset *= 1000;
}
if (isRelative) {