Skip to content

Commit

Permalink
Merge pull request #2856 from sadanora/fix-bignum-and-fixnum-links
Browse files Browse the repository at this point in the history
Kernel.#IntegerのFixnumとBignumのリンク切れを修正した
  • Loading branch information
znz authored May 1, 2024
2 parents 896cddc + 2c57dcc commit 4cb55c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion refm/api/src/_builtin/functions
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,11 @@ p Float("") # invalid value for Float(): "" (ArgumentError)
--- Integer(arg, base = 0) -> Integer
#@end

引数を整数([[c:Fixnum]],[[c:Bignum]])に変換した結果を返します。
引数を整数
#@until 3.2
([[c:Fixnum]],[[c:Bignum]])
#@end
に変換した結果を返します。

引数が数値の場合は直接変換し(小数点以下切り落とし)、
文字列の場合は、進数を表す接頭辞を含む整数表現とみなせる文字列のみ
Expand Down

0 comments on commit 4cb55c8

Please sign in to comment.