以下Math类的方法中,-4.4通过哪个方法运算后,结果为-5.0?()
A、round()四舍五入
B、min()
C、floor()小于参数最大整数
D、ceil()大于参数最小整数
A、round()四舍五入
B、min()
C、floor()小于参数最大整数
D、ceil()大于参数最小整数
A、Math.floor(Math.random()*6) B、Math.floor(Math.random()*7) C、Math.floor(Math.random()*8) D、Math.ceil(Math.random()*8)
A、n=Math.round(Math.random(100))+1; B、n=Math.round(Math.random()*100)+1; C、n=Math.floor(Math.random(100))+1; D、n=Math.floor(Math.random()*100)+1;
A、(int)(20+Math.random()*97) B、 20+(int)(Math.random()*980) C、(int)Math.random()*999 D、 20+(int)Math.random()*980