Matheatically find the value that is closest to 0

前端 未结 0 414
猫巷女王i
猫巷女王i 2020-12-11 19:35

Is there a way to determine mathematically if a value is closer to 0 than another?

For example closerToZero(-2, 3) would return -2.

I

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