婷婷久久综合九色综合,欧美成色婷婷在线观看视频,偷窥视频一区,欧美日本一道道一区二区

<tt id="bu9ss"></tt>
  • <span id="bu9ss"></span>
  • <pre id="bu9ss"><tt id="bu9ss"></tt></pre>
    <label id="bu9ss"></label>

    當(dāng)前位置:首頁(yè) >  站長(zhǎng) >  編程技術(shù) >  正文

    Java中絕對(duì)值函數(shù)使用說(shuō)明

     2021-01-20 16:47  來(lái)源: 網(wǎng)絡(luò)綜合   我來(lái)投稿 撤稿糾錯(cuò)

      阿里云優(yōu)惠券 先領(lǐng)券再下單

    絕對(duì)值函數(shù)使用說(shuō)明

    絕對(duì)值函數(shù)是JDK中Math.java中的實(shí)現(xiàn)方法,其用來(lái)得到表達(dá)式的絕對(duì)值。

    其實(shí)現(xiàn)非常簡(jiǎn)單,源碼如下:

     /**
     * Returns the absolute value of an {@code int} value.
     * If the argument is not negative, the argument is returned.
     * If the argument is negative, the negation of the argument is returned.
     *
     * <p>Note that if the argument is equal to the value of
     * {@link Integer#MIN_VALUE}, the most negative representable
     * {@code int} value, the result is that same value, which is
     * negative.
     *
     * @param a the argument whose absolute value is to be determined
     * @return the absolute value of the argument.
     */
     public static int abs(int a) {
     return (a < 0) ? -a : a;
     }

    申請(qǐng)創(chuàng)業(yè)報(bào)道,分享創(chuàng)業(yè)好點(diǎn)子。點(diǎn)擊此處,共同探討創(chuàng)業(yè)新機(jī)遇!

    相關(guān)標(biāo)簽
    絕對(duì)值函數(shù)

    相關(guān)文章

    熱門排行

    信息推薦