commit | faa2bd180348cc7c30c8f522888ff1e3dbb002ae | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Mar 21 17:47:41 2023 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Mar 21 17:47:41 2023 +0100 |
tree | c54855e6b3738f24be861cbd1b7563471b7ccc56 | |
parent | e9bcbc0160e3df1dd236acc1010c4c256ad2ba50 [diff] |
Show 2 decimals in details for floats Change-Id: I70d4c7ac15b008736a4f0a9db771fbee3ba67711
diff --git a/User.php b/User.php index 642e894..790af5a 100644 --- a/User.php +++ b/User.php
@@ -137,6 +137,7 @@ else $value = "no"; } elseif(is_float($value)) { $key .= " €"; + $value = number_format($value, 2, '.', ' '); } $value = str_replace("\r\n", "<br>", $value); $key = str_replace("_", " ", ucfirst($key));