整数包括固定长整数(Fixnum)与大数(Bignum)。Fixnum可表示系统平台上自然操作的数值范围(对32位机器是-230~230-1),而Bignum则表示比此范围更大的整数。
基于1个网页-相关网页
Listing 3 extended the Fixnum class, which was known statically.
清单3扩展了fixnum类,该类被认为是静态的。
youdao
You could easily just open up the Fixnum class and add a method to print a bar of the appropriate length, as in Listing 3.
您可以打开fixnum类,并添加一个方法来打印出相应长度的柱,如清单3所示。
应用推荐
模块上移
模块下移
不移动