Simplix-Softworks / SimplixStorage

Library to store data in a better way
Apache License 2.0
138 stars 25 forks source link

Does not save Double #8

Closed JustinDevB closed 5 years ago

JustinDevB commented 5 years ago

Describe the bug When you do json.set("Path", value) and pass value as a double, it saves an int to the file instead of a double.

double x = loc.getX(); json.set("Sirens." + openId + ".X", x);

leads to a value in the .json file of -> "X": -9992, calling json.getDouble("Sirens." + i + ".X") then returns the int instead of a double

KotlinFactory commented 5 years ago

Thanks for your feedback. This issue will be resolved in 2.5:)

KotlinFactory commented 5 years ago

Fixed:)