mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-14 13:58:40 +03:00
f236e2cfb2
Ref. #366 Also updates `CONTRIBUTING.md`. This was pretty straight-forward :)
25 lines
471 B
Plaintext
25 lines
471 B
Plaintext
## Article
|
|
|
|
```catala
|
|
declaration scope A:
|
|
output x content decimal
|
|
output y content decimal
|
|
output x1 content decimal
|
|
output y1 content decimal
|
|
|
|
scope A:
|
|
definition x equals 84.648665
|
|
definition y equals 4.368297
|
|
definition x1 equals round of x
|
|
definition y1 equals round of y
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala Interpret -s A
|
|
[RESULT] Computation successful! Results:
|
|
[RESULT] x = 84.648665
|
|
[RESULT] x1 = 85.
|
|
[RESULT] y = 4.368297
|
|
[RESULT] y1 = 4.
|
|
```
|