ah integer to double conversion problem... in line 47