Closed julianrojas87 closed 1 year ago
The condition used within this function to remove trailing decimal points .0 is affecting proper double numbers. For example, 19.045 becomes 1945.
.0
19.045
1945
The solution is simply checking if the number actually ends with .0 to perform the transformation:
if (DOUBLE.equals(dataType) && data.endsWith(".0")) { // remove trailing decimal points (Quirk from MySQL, see issue 203) return data.replace(".0", ""); }
Fixed on development branch
Fixed in 950a77cb8f2a9254cf387cf3b6bbdca778fb49fb
The condition used within this function to remove trailing decimal points
.0
is affecting proper double numbers. For example,19.045
becomes1945
.The solution is simply checking if the number actually ends with
.0
to perform the transformation: