Math.ceil(ダブル)は切り上げ

Math.ceil(6/5)---> 1.0

図5及び図6は、この値はMath.ceil(1.0)に対応し、原因INTであります

右()6/5(ダブル)Math.ceilので、結果は2.0であるべきです

おすすめ

転載: www.cnblogs.com/love-dream-88/p/11314799.html