fixes display of money amounts below 1eur

This commit is contained in:
cybrwshl 2024-02-19 22:33:35 +01:00
parent c0cd8e7707
commit 65608d2a23

View file

@ -66,7 +66,14 @@
if i == 0 {
return "0.00€"
}
str(calc.round(i * 100)).slice(0,-2)+ "." + str(calc.round(i * 100)).slice(-2) + "€"
let j = str(calc.round(i * 100))
if i < 1 {
"0." + j.slice(-2) + "€"
} else {
j.slice(0,-2)+ "." + j.slice(-2) + "€"
}
}
// DIN 5008 nach Faltmarke 1