返回顶部

收藏

Integer is an instance of the Fixnum class, which inherits the Integer class.

更多
x = 100

x.class # => Fixnum

标签:Ruby,Number

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2015-11-25 09:57:09List the modules which Integer class is from by JustForFly
  2. 2015-12-30 16:06:00Constants in Float by jeffsui
  3. 2016-02-28 12:40:41Inspect a rational number by jeffsui
  4. 2016-03-06 11:20:56Oct number with 0o by 杨洋
  5. 2016-03-23 16:27:00next number of 999 by 杨洋
  6. 2016-08-28 16:14:02Using Complex Numbers by LeoSun
  7. 2016-08-28 20:13:55Calculating a factorial in Ruby by zetaliang
  8. 2016-08-29 11:30:23If it is not a zero, then by 杨洋
  9. 2016-08-29 15:07:28shift left by Ω油菜
  10. 2016-03-06 15:43:02create hexadecimal numbers - base 16 - by prefacing them with 0x by JustForFly
  11. 2016-03-21 09:16:24Generates 25 prime numbers from 2 to 97 by 杨洋
相关聚客文章
  1. Peter Cooper 发表 2012-10-18 04:05:24 The Past 2 Weeks in Ruby: 1.9.3-p286, JRuby 1.7RC2
  2. trevrowe 发表 2013-02-19 15:54:24 AWS SDK for Ruby Release v1.8.3
  3. 博主 发表 2013-02-08 14:34:17 Ruby 2.0.0-rc2 is released
  4. 博主 发表 2013-03-26 10:08:22 Ruby社区应该去Rails化了
  5. zputee 发表 2013-05-04 03:57:43 ruby中的常量
  6. boohee 发表 2013-05-09 08:19:22 【上海】薄荷科技诚招Ruby On Rails工程师
  7. hpviewer 发表 2013-05-17 10:31:59 深圳ruby基友游玩一日团
  8. xiaoxiao 发表 2013-05-26 12:57:12 ruby 操作xls
  9. angryfrog 发表 2013-06-05 21:10:57 请教大家如何转型成为ruby的开发人员?
  10. luikore 发表 2013-06-13 05:59:05 ruby 版科ऌ学上网
  11. ZeroCool 发表 2013-06-17 17:02:05 Ruby on Linux
  12. sundevilyang 发表 2013-06-26 03:52:54 RAILS 4.0.0 RC2 AND RUBY 2.0 DICTIONARIES

发表评论