<?php
$values = [ -8.5, -8.45, 8.45, 8.5 ];
foreach (RoundingMode::cases() as $mode) {
printf( '%20s: ', $mode->name );
foreach ($values as $value) {
printf( '%5s', round($value, 1, $mode) );
}
foreach ($values as $value) {
printf( '%5s', round($value, 0, $mode) );
}
echo "\n";
}