double型和float型都可以如下表示无穷大和无穷小
import static java.lang.Double.NEGATIVE_INFINITY;
import static java.lang.Double.POSITIVE_INFINITY;
double max=POSITIVE_INFINITY;//无穷大
double maxx=NEGATIVE_INFINITY;//无穷小
标签:java gpo ati inf stat lan body ble positive
double型和float型都可以如下表示无穷大和无穷小
import static java.lang.Double.NEGATIVE_INFINITY;
import static java.lang.Double.POSITIVE_INFINITY;
double max=POSITIVE_INFINITY;//无穷大
double maxx=NEGATIVE_INFINITY;//无穷小
标签:java gpo ati inf stat lan body ble positive
原文地址:https://www.cnblogs.com/newcolor/p/8297425.html