catala/tests/modules/good/prorata_external.catala_en
2024-02-12 18:03:16 +01:00

16 lines
493 B
Plaintext

> Module Prorata_external external
Define a prototype for an external function in an ml file
```catala-metadata
# Trivial algorithm that cumulates all rounding errors to the last element
declaration prorata content list of money
depends on amount content money,
weights content list of money
# Another algorithm that distributes errors along the way
declaration prorata2 content list of money
depends on amount content money,
weights content list of money
```