0

I have a code block:

round(4.5)
round(5.5)

When I run the code above, I get:

4
6

I expect the round to round the numbers up when the decimal is >5. Why round works differently for 4.5 and 5.5

user120242
  • 14,918
  • 3
  • 38
  • 52
Jonas Palačionis
  • 4,591
  • 4
  • 22
  • 55

0 Answers0