{"title":"Math.min\uff20\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u306e\u5b9f\u88c5","published":"2022-01-13 00:00:00","author_name":"yohhoy","author_url":"https://blog.hatena.ne.jp/yohhoy/","height":"190","version":"1.0","blog_title":"yohhoy\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","url":"https://yohhoy.hatenadiary.jp/entry/20220113/p1","blog_url":"https://yohhoy.hatenadiary.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20220113%2Fp1\" title=\"Math.min\uff20\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u306e\u5b9f\u88c5 - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"type":"rich","categories":["Java"],"width":"100%","description":"Java\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30eaMath.min\u30e1\u30bd\u30c3\u30c9\u306e\u5b9f\u88c5\u306b\u3064\u3044\u3066\u30e1\u30e2\u3002\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u578b(float, double)\u306b\u5bfe\u3059\u308bmin\u3067\u306f\u3001NaN(Not a Number)\u304a\u3088\u3073\u8ca0\u306e\u30bc\u30ed(-0.0)\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002*1 public static double min(double a, double b) { if (a != a) return a; // a is NaN if ((a == 0.0d) && (b == 0.0d) && (Double.doubleToRawLongBits(b) == negativeZeroDoubleBits)) { // Raw conversi\u2026"}