correcting output by switching from FLOAT to the correct DOUBLE