Skip to content
Snippets Groups Projects

Fix large integer queries

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
@@ -144,6 +144,9 @@ public class POV implements EntityFilterInterface {
@@ -144,6 +144,9 @@ public class POV implements EntityFilterInterface {
unitStr = m.group(2);
unitStr = m.group(2);
this.vDouble = Double.parseDouble(vDoubleStr);
this.vDouble = Double.parseDouble(vDoubleStr);
 
if (this.vDouble % 1 == 0) {
 
this.vInt = (int) Math.floor(this.vDouble);
 
}
} catch (final NumberFormatException e) {
} catch (final NumberFormatException e) {
this.vDouble = null;
this.vDouble = null;
}
}
Loading