fixes display of money amounts below 1eur
This commit is contained in:
parent
c0cd8e7707
commit
65608d2a23
1 changed files with 8 additions and 1 deletions
|
@ -66,7 +66,14 @@
|
||||||
if i == 0 {
|
if i == 0 {
|
||||||
return "0.00€"
|
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
|
// DIN 5008 nach Faltmarke 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue