Prism · Math
$round
Rounds a number to a number of digits. digits is 0 unless given. mode rounds down with "floor" or up with "ceil" where it would round to the nearest.
{ total: 100, guests: 7 }{
$round: {
value: { $div: [{ $ref: '$.total' }, { $ref: '$.guests' }] },
digits: 2,
},
}14.29
Runs in this page on the installed package. The input and the expected output are defined by the example.