小心Math.abs(-2147483648)的坑

Math.abs(-2147483648) 结果还是-2147483648

需要转成long型才能输出正数,Math.abs(-2147483648L) =2147483648

posted @ 2020-07-24 17:58  宇枫  阅读(595)  评论(0编辑  收藏  举报