I disagree with the closure reason of needs debugging details. There are two complete programs (formatted using appropriate markdown) which are complete and can easily be run to reproduce the behaviour described. One value rounds up to 3 and the other rounds down to 2, which doesn't quite follow the human understanding of numbers (2.4999999999999999999 < 2.5 so it should round down). 

While it is true that there are _also_ images of code and output (which are unnecessary and [discouraged](https://meta.stackoverflow.com/a/285557/15497888)), that does not change the fact that the minimal necessary information is contained within the question in a useful format (appropriately formatted text).

Having said this, however, I do believe the other close vote which proposed a duplicate of https://stackoverflow.com/q/588004/15497888 was likely correct as it explains the underlying cause.

There are _many_ other examples on Stack Overflow. Here is one that may be more relevant (in python): https://stackoverflow.com/q/65936797/15497888