When working with floating-point numbers in PHP, what potential issues should be considered?

When working with floating-point numbers in PHP, one potential issue to consider is the precision loss due to the way floating-point numbers are represented in binary. This can lead to unexpected results in calculations. To mitigate this issue, you can use the PHP function `round()` to round the result to a specified number of decimal places.

$number1 = 0.1;
$number2 = 0.2;

$result = round($number1 + $number2, 2);

echo $result; // Outputs 0.3