Ruby基础教程 1-10 类结构 1.数值类结构 Fixnum到Bignum会自动转换 2.常用数值表示 3. ans=10.divmod(3) ans[0]是商 ans[1]是余数 4.实例方法round方法四舍五入 ceil方法向上取整。