From 38e69c35a7bc04a19697ea23ad207cc777040cff Mon Sep 17 00:00:00 2001 From: Thies <40271292+Thiies@users.noreply.github.com> Date: Sun, 7 Apr 2024 16:17:08 +0200 Subject: [PATCH] small method change + bump version --- build.gradle.kts | 2 +- .../java/dev/httpmarco/osgan/utils/types/MessageUtils.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3a3cab8..01230fa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ allprojects { apply(plugin = "maven-publish") group = "dev.httpmarco" - version = "1.1.3-SNAPSHOT" + version = "1.1.4-SNAPSHOT" repositories { mavenCentral() diff --git a/osgan-utils/src/main/java/dev/httpmarco/osgan/utils/types/MessageUtils.java b/osgan-utils/src/main/java/dev/httpmarco/osgan/utils/types/MessageUtils.java index d1582cc..5d5e015 100644 --- a/osgan-utils/src/main/java/dev/httpmarco/osgan/utils/types/MessageUtils.java +++ b/osgan-utils/src/main/java/dev/httpmarco/osgan/utils/types/MessageUtils.java @@ -253,7 +253,11 @@ public static String getPercent(int amount, int percentOf, int maxDigits, boolea return format.format(percent) + "%"; } - public static String getFormattedInt(int value) { + public static String formatNumber(long value) { return NumberFormat.getInstance().format(value).replace(",", "."); } + + public static String formatNumber(double value) { + return NumberFormat.getInstance().format(value); + } }