Please post the code you are using to insert $var into your MySQL row.
Your results of 9999999.99 suggest that you are inserting a number that is greater than 9999999.99.
If for example your statment is:
INSERT INTO sometable SET somecolumn='$var'
I think you might want to print out $var and see what you're actually trying to insert.
Here's what I would do. Convert $var to a number and leave off the quotes in the SQL:
$var=($var01)+(round($var1,2).01);
mysql_query(
"INSERT INTO INSERT INTO sometable SET somecolumn=$var");
//NOTE: NO QUOTES around $var; insert $var as a number