This is really not important at all, but you write:

table = 0.00 twice,

once when you initialize the variable and once again when you are about to do your if statements.