What are some common pitfalls to be aware of when working with numerical values in PHP, especially when calculating taxes or prices?

One common pitfall when working with numerical values in PHP, especially when calculating taxes or prices, is the issue of floating-point precision. To avoid rounding errors, it is recommended to use PHP's built-in functions for handling arithmetic operations with precision, such as the `bcadd`, `bcsub`, `bcmul`, and `bcdiv` functions.

$price = '10.25';
$tax_rate = '0.08';

$total_price = bcadd($price, bcmul($price, $tax_rate, 2), 2);

echo $total_price;