mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 17:10:22 +03:00
71bb67163c
Command used: `sed -i 's/\([-+*/><=]=\?\)[.$@^€$]/\1/g' **/*/*.catala_*` The overload test, of course, is kept unchanged and ensures that explicit operators still work.
20 lines
341 B
Plaintext
20 lines
341 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.
|
|
[RESULT] y = 1.04
|
|
```
|