zoukankan      html  css  js  c++  java
  • Libraries

    • Math.ceil()

        • The Math.ceil() function returns the smallest integer greater than or equal to a given number.
        • console.log(Math.ceil(.95));
          // expected output: 1
          
          console.log(Math.ceil(4));
          // expected output: 4
          
          console.log(Math.ceil(7.004));
          // expected output: 8
          
          console.log(Math.ceil(-7.004));
          // expected output: -7
          
    • Number.isInteger()

      •   The Number.isInteger() method determines whether the passed value is an integer.
      • function fits(x, y) {
          if (Number.isInteger(y / x)) {
            return 'Fits!';
          }
          return 'Does NOT fit!';
        }
        
        console.log(fits(5, 10));
        // expected output: "Fits!"
        
        console.log(fits(5, 11));
        // expected output: "Does NOT fit!"
        
    永远渴望,大智若愚(stay hungry, stay foolish)
  • 相关阅读:
    mini linux制作
    samba
    文件链接
    bz1234513
    shell中if判断语句
    文件系统层次结构
    ssh免密码登陆
    shell基础
    参考__Web前端大全
    参考__综合类网站大全
  • 原文地址:https://www.cnblogs.com/h-hkai/p/8672279.html
Copyright © 2011-2022 走看看