@634

四捨五入

Advertisement

説明

四捨五入する。

四捨五入の処理

public static int roundOff(double x){
    x = x + 0.5;
    return (int)x;
}

Advertisement

ショートカット

634
634ブログ
このカテゴリのトップページに戻る
Incubator(Pukiwiki)
634ラボ
   UIコレクションギャラリー
   ZO-3ジェネレーター

サイト検索


Y!ログール