How to round a decimal to the nearest 0.5 (0.5, 1.5, 2.5, 3.5)

前端 未结 0 1434
青春惊慌失措
青春惊慌失措 2021-01-12 11:37

I want to round a number to the nearest 0.5. Not every factor of 0.5, just the 0.5s.

For example, 0.5, 1

相关标签:
回答
  • 消灭零回复
提交回复
热议问题