Prism · Math

$div

Divides the first number by the second. Dividing by zero refuses with E_DIVISION_BY_ZERO.

The source
{ total: 100, people: 8 }
The config
{ $div: [{ $ref: '$.total' }, { $ref: '$.people' }] }
What comes out
12.5
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.