Convert fix.c to use doubles