float constants changed to doubles.