unscuff js code
This commit is contained in:
parent
6e1e355a61
commit
06805057d4
@ -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", ""));
|
double offset = matcher.group(2).isEmpty() ? 0 : Double.parseDouble(matcher.group(2).replaceAll("k", ""));
|
||||||
|
|
||||||
if (matcher.group(2).contains("k")) {
|
if (matcher.group(2).contains("k")) {
|
||||||
String newString = matcher.group(2).replaceAll("k", "");
|
offset *= 1000;
|
||||||
double convertedNumber = Double.parseDouble(newString);
|
|
||||||
convertedNumber = convertedNumber * 1000;
|
|
||||||
offset = convertedNumber;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isRelative) {
|
if (isRelative) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user