Changed float values to double