Almost. The second and third values are converted the way the OP wants but the first value, 12.2726, is converted to 12.25 (as opposed to 12.30).
This uses a consistent ‘ceiling’ approach but produces very different results from the desired ones.
{{ 12.2726 | round(2, 'ceil') }}
{{ 12.3746 | round(2, 'ceil') }}
{{ 12.3946 | round(2, 'ceil') }}
The challenge here is that the desired rounding is to two decimal places but sometimes floor
and sometimes ceiling
and only in increments of 0.5.