catala/tests/test_dec/good/zero_after_comma.catala_en

26 lines
517 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 Interpret -s A
[RESULT] Computation successful! Results:
[RESULT] x = 4.0
[RESULT] y = 1.04
```
```catala-test-inline
$ catala Interpret_Lcalc -s A --avoid_exceptions --optimize
[RESULT] Computation successful! Results:
[RESULT] x = ESome 4.0
[RESULT] y = ESome 1.04
```