What's that, bash scripting? Which language uses $ in front of a variable? Anyway you are wrong and it seems you cant see it. I give up.
PHP uses $.
Any floating-point calculation can easily be not exact. That's why floats and doubles should be avoided when working with financial data.