catala/tests/test_dec/good/simple.catala_en

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
662 B
Plaintext
Raw Normal View History

## Article
```catala
declaration scope A:
context output x content decimal
context output y content decimal
context output z content decimal
scope A:
definition x equals 84.648665
definition y equals 4.368297
definition z equals x / y
```
```catala-test-inline
$ catala Interpret -s A
[RESULT] Computation successful! Results:
[RESULT] x = 84.648665
[RESULT] y = 4.368297
[RESULT] z = 19.37795552820698775747…
```
```catala-test-inline
$ catala Interpret_Lcalc -s A --avoid_exceptions --optimize
[RESULT] Computation successful! Results:
[RESULT] x = ESome 84.648665
[RESULT] y = ESome 4.368297
[RESULT] z = ESome 19.37795552820698775747…
```