Skip to content

Commit

Permalink
fix decimal precision
Browse files Browse the repository at this point in the history
add lava png
  • Loading branch information
Leg0shii committed Apr 23, 2023
1 parent 4d4b800 commit 86d702b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void addTextClass(VBox... vBoxes) {
}

private String setDecimals(double value) {
String parsedValue = String.format("%," + precision + "f", value);
String parsedValue = String.format("%." + precision + "f", value);
if (value == 0) parsedValue = ("" + parsedValue).replace("-", "");
parsedValue = parsedValue.replace(",", ".");
return parsedValue;
Expand Down
Binary file added src/main/resources/images/lava.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 86d702b

Please sign in to comment.