From 6b5270f3415462611d43195576dc4b6466dcab30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Fri, 17 Jan 2025 23:06:55 +0300 Subject: [PATCH] Add NumberFormatter helper class for number formatting - Introduced a new helper class `NumberFormatter` with a method `commaToDot` to convert numbers formatted with commas to a dot notation. - The method also trims whitespace and removes percentage signs for cleaner data handling. This commit enhances the application's ability to process numerical data consistently, supporting future financial data operations. --- app/Helpers/NumberFormatter.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 app/Helpers/NumberFormatter.php diff --git a/app/Helpers/NumberFormatter.php b/app/Helpers/NumberFormatter.php new file mode 100644 index 0000000..c4817ff --- /dev/null +++ b/app/Helpers/NumberFormatter.php @@ -0,0 +1,15 @@ +