summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-12 14:58:00 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-12 16:23:32 +0100
commit51eaeed4339a98495eb0f2f5189fa8bdef80fe7c (patch)
tree0a1bf90ba087c30ec4fc74be6d7f64382896619f /ishtar_common
parent7ca3c3ae08666bd2aeb2580410832efdee4ab7a5 (diff)
downloadIshtar-51eaeed4339a98495eb0f2f5189fa8bdef80fe7c.tar.bz2
Ishtar-51eaeed4339a98495eb0f2f5189fa8bdef80fe7c.zip
🐛 templates: fix float_format round (refs #6172)
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/utils_secretary.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/utils_secretary.py b/ishtar_common/utils_secretary.py
index fc6975fc9..917abdeaa 100644
--- a/ishtar_common/utils_secretary.py
+++ b/ishtar_common/utils_secretary.py
@@ -51,7 +51,7 @@ def float_format(value):
return ""
locale.setlocale(locale.LC_ALL, "fr_FR.UTF-8")
if int(value) != value:
- value = int(value * 100)/100
+ value = float(f"{value:.2f}")
return f"{value:n}"