Hi @ncave! @MangelMaxime has reported this test is failing. The problem doesn't seem to be with Thoth but with the Decimal constructor. The 0.7833M literal is compiled to JS as follows (which converts to string as 7833):
Decimal.fromParts(7833, 0, 0, false, 4)
I noticed that reverting fable-compiler to 2.1.11 makes it work. Then the decimal literal becomes:
new Decimal("0.7833")
Between those releases there is this commit that added the decimal constructors. Could you please have a look?
@alfonsogarciacaro Yes, looks like the ToString is broken, I'll fix it (a bit later, busy atm).
@alfonsogarciacaro Fixed in #1786.
Most helpful comment
@alfonsogarciacaro Fixed in #1786.