Are there any potential pitfalls to be aware of when working with floating-point numbers in PHP?

When working with floating-point numbers in PHP, it is important to be aware of potential precision issues due to the way floating-point numbers are represented internally. This can lead to unexpected results when performing calculations. To mitigate this, you can use the `round()` function to round the result to a specific number of decimal places.

$number1 = 0.1;
$number2 = 0.2;

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

echo $result; // Outputs 0.3