convert things to double to make compiler happy on pcduino