catala/tests/dec/good/zero_after_comma.catala_en
2024-05-03 15:27:06 +02:00

33 lines
491 B
Plaintext

## Article
```catala
declaration scope A:
context output x content decimal
context output y content decimal
scope A:
definition x equals 4.0
definition y equals 1.0 + (x / 100.0)
assertion y = 1.04
```
```catala-test-inline
$ catala Typecheck --check-invariants
┌─[RESULT]─
│ All invariant checks passed
└─
┌─[RESULT]─
│ Typechecking successful!
└─
```
```catala-test-inline
$ catala test-scope A
┌─[RESULT]─
│ x = 4.0
│ y = 1.04
└─
```