What potential pitfalls should developers be aware of when using PHP for calculations involving floating point numbers?

When using PHP for calculations involving floating point numbers, developers should be aware of potential precision issues due to the way floating point numbers are represented in computers. To mitigate this, developers can use the `bcmath` extension in PHP, which provides arbitrary precision mathematics functions for working with numbers with arbitrary precision.

// Using the bcmath extension for arbitrary precision mathematics
$num1 = '0.1';
$num2 = '0.2';

$sum = bcadd($num1, $num2, 10); // Sum with 10 decimal places precision
echo $sum;