mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 17:10:22 +03:00
38 lines
614 B
Plaintext
38 lines
614 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 Typecheck --check-invariants
|
|
┌─[RESULT]─
|
|
│ All invariant checks passed
|
|
└─
|
|
┌─[RESULT]─
|
|
│ Typechecking successful!
|
|
└─
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala test-scope A
|
|
┌─[RESULT]─
|
|
│ x = 84.648,665
|
|
│ x1 = 85.0
|
|
│ y = 4.368,297
|
|
│ y1 = 4.0
|
|
└─
|
|
```
|