Hi everyone!

I am doing the quiz in introduction section and need help to understand the answer to the following question:

**What will the following code log to the console?**

```
let totalCost = 24.57;
console.log(Math.floor(totalCost));
```

The correct answer is **24**, however, remembering from math, anything over .50 (such as .51) should be rounded to the nearest number, which in this case is 25. If it was .49, then it would round it of to 24. So, WHY the quiz says correct answer is 24?