floor() fails to to round down properly?
10:37 18 Sep 2026

I want to round a temperature calculation, so I am using floor():

#include 
#include 
using namespace std;

int main() {
    double F_Temp1;
    double F_Temp2;
    cout<<"Please type in 2 temperatures in Fahrenheit";
    cin>>F_Temp1>>F_Temp2;
    double C_temp=((F_Temp1-32)*(0.555));
    double C_temp1=floor(C_temp);
    double C_Temp2=floor((F_Temp2-32)*(0.555));
    cout<<"The 1st temperature is "<

However, floor() is not working properly, so the number doesn't round at all.

I created a new double to save the floored value to, I looked for errors, none of that worked. There aren't even errors listed.

c++ math cmath