Changed float functions to double counterparts