Expression tests: Maths

This page tests that the maths options available with Rivendell Expressions work as intended

Set up

No set up necessary. Just check below.

Results

Test Expected Actual Result
Add two integers (1 + 2) 3 3 PASS
Subtract two integers (3 - 2) 1 1 PASS
Add two decimals without formatting result (2.25 + 4.25) 6 6 PASS
Add two decimals to 2 decimal places (2.25 + 4.25) 6.50 6.50 PASS
Multiply two integers (2 x 3) 6 6 PASS
Divide two integers (3 / 2) => odd rounding 2 2 PASS
Divide two integers (5 / 2) => even rounding 2 2 PASS
Divide two integers to 2 decimal places (3 / 2) 1.50 1.50 PASS
Divide two integers to 2 decimal places (5 / 2) 2.50 2.50 PASS