java double Infinity Double.POSITIVE_INFINITY Double.NEGATIVE_INFINITY

java double  Infinity

if (ret == Double.POSITIVE_INFINITY || ret == Double.NEGATIVE_INFINITY) {
return 0.0;
}

 

 

posted @ 2023-10-19 18:07  papering  阅读(23)  评论(0编辑  收藏  举报