Here is one example that works as expected:
let a = newDecimal("1.49")
let b = 1.25
let c1 = a * b
let c2 = b * a
echo c1
echo c2
# 1.8625
# 1.8625
Run
- Re: Nim-Decimal test hugogranstrom
- Re: Nim-Decimal test JPLRouge
- Re: Nim-Decimal test hugogranstrom
- Re: Nim-Decimal test JPLRouge
- Re: Nim-Decimal test hugogranstrom
- Re: Nim-Decimal test JPLRouge
- Re: Nim-Decimal test hugogranstrom
- Re: Nim-Decimal test JPLRouge
- Re: Nim-Decimal test hugogranstrom
- Re: Nim-Decimal test hugogranstrom
- Re: Nim-Decimal test JPLRouge
