Are there any best practices for formatting numbers in PHP without rounding them?

When formatting numbers in PHP without rounding them, you can use the number_format() function with the additional parameter specifying the number of decimal places to display. By setting the decimal parameter to 0, you can display the number without any rounding.

$number = 1234.56789;
$formatted_number = number_format($number, 2, '.', ''); // Displays the number with 2 decimal places
echo $formatted_number; // Output: 1234.56