Add double to float function