It might be very basic for many but I don’t know what’s happening here. Any help from the community of genius is much appreciated !

C++ Code :

```
double a = (log(243))/(log(3));
float b = ((log(243))/(log(3)));
cout<<a<<"\n";
cout<<b<<"\n";
cout<<floor(a)<<"\n";
cout<<floor(b)<<"\n";
```

**Output :**

**5**

**5**

**4**

**5**