catala/tests/dec/good/infinite_precision.catala_en
2024-05-03 15:27:06 +02:00

39 lines
905 B
Plaintext

## Article
```catala
declaration scope A:
context output x content decimal
context output y content decimal
context output z content decimal
context output a content decimal
scope A:
definition x equals 84.64866565265689623
definition y equals - 4.36829778705320654980
definition z equals 654265429805103220650980650.5705405106540
definition a equals x / (y * (x + y) * (x * x * z * z))
```
```catala-test-inline
$ catala Typecheck --check-invariants
┌─[RESULT]─
│ All invariant checks passed
└─
┌─[RESULT]─
│ Typechecking successful!
└─
```
```catala-test-inline
$ catala test-scope A
┌─[RESULT]─
│ a =
│ -0.000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,078,695,580,959,228,473,468…
│ x = 84.648,665,652,656,896,23
│ y = -4.368,297,787,053,206,549,8
│ z = 654,265,429,805,103,220,650,980,650.5…
└─
```