:: reverse dictionary ::
※ソースファイルについて
◎各マークの意味
Pb:pubic Pr:protected S:static
小数点第1位で四捨五入するには、Math クラスの round メソッドを使います。
longnp4 = Math.round(0.4);longnp5 = Math.round(0.5);longnp6 = Math.round(0.6);
np4 は 0 、np5 は 1 、np6 は 1 になります。
java.lang.Math PbSlonground(doublen) PbSintround(floatn)
小数点数 n を小数点第1位で四捨五入した整数に丸めます。
n … 小数点第1位で四捨五入する小数点数
小数点第1位で四捨五入した整数
Copyright (C) 2005-2007 Noto Watabe. All rights reserved.
e-mail:wmh@always-pg.com