mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
26 lines
517 B
Plaintext
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
|
|
```
|