How to convert float to double using BME280 sensor for PID control

The BME280 sensor seems to return a float type value for the temperature and I would like to use it as my input for my PID controller. The problem is that the PID function has the input as a double. So how do you convert the sensor value from float to double ? Thanks !

PID myPID(&Input, &Output, &Setpoint, Kp, Ki, Kd, DIRECT); // PID(double*, double*, double*, double, double, double, int)

Input = bme.readTemperature(); // float Adafruit_BME280::readTemperature(void)

Unless you're using a Arduino Due, a float is the same as a double.

Please share your complete code for BME280.

More accurately, on the 8-bit Arduinos double is not implemented at all, but is instead just
an alias for float.

I can't help but include this tidbit that appeared recently in the 'off-topic' section of the AVR Freaks forum.

A man goes into a bar and orders 1.00000000009 root beers.

The bartender says "I will have to charge you extra for that, because it's a float."

The man responds "In that case, you might as well make it a double!"

Don