fixes rounding issue

pull/65/head
macniel 2025-11-12 19:09:07 +01:00
parent 29d25f8afe
commit cfc5bc15b1
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ function currency(st) {
// internally the price is always given in Silver // internally the price is always given in Silver
// so we need to inflate the value of price by 100 to be able to divide beginning from Heller // so we need to inflate the value of price by 100 to be able to divide beginning from Heller
const baseValue = st * 100 const baseValue = Math.round(st * 100)
// then we can regex over it // then we can regex over it