I can't wrap my head around this one.. I have a Float type value stored in my Sql Server database - Let's say that this value is 4.2. I'm querying the database using the PHP 'odbc_exec' and 'odbc_fetch_array' functions. When I display the value on my page it is now 4.2000000000000002. It's as simple as that.. What could be causing this?? A select statement in the database management studio shows a different number than PHP.
I should note that when I step through the PHP code using netbeans the value is altered from the moment it is fetched so this has nothing to do with the way i'm printing this to the page.
Please help!
Thank You