るりまサーチ

最速Rubyリファレンスマニュアル検索!
7件ヒット [1-7件を表示] (0.015秒)

別のキーワード

  1. _builtin domainerror
  2. _builtin math::domainerror
  3. domainerror _builtin
  4. news for ruby 2.2.0 math::domainerror

クラス

検索結果

Integer.sqrt(n) -> Integer (9.0)

非負整数 n の整数の平方根を返します。すなわち n の平方根以下の 最大の非負整数を返します。

...非負整数を返します。

@param n 非負整数。Integer ではない場合は、最初に Integer に変換されます。
@raise Math::DomainError n が負の整数の時に発生します。

//emlist[][ruby]{
Integer.sqrt(0) # => 0
Integer.sqrt(1) # => 1
Integer.sqrt(24)...