るりまサーチ

最速Rubyリファレンスマニュアル検索!
620件ヒット [601-620件を表示] (0.057秒)
トップページ > クエリ:b[x] > クラス:OpenSSL::BN[x]

別のキーワード

  1. string b
  2. _builtin b
  3. b string
  4. b _builtin

ライブラリ

キーワード

検索結果

<< < ... 5 6 7 >>

OpenSSL::BN#to_int -> Integer (3001.0)

自身を Integer のインスタンスに変換します。

...自身を Integer のインスタンスに変換します。

@raise OpenSSL::BNError 変換に失敗した場合に発生します...

OpenSSL::BN#ucmp(other) -> -1 | 0 | 1 (3001.0)

自身と other の絶対値を比較し、自身の絶対値が小さいときには -1、 等しいときには 0、 大きいときには 1 を返します。

...きには 1 を返します。

//emlist[][ruby]{
require 'openssl'

OpenSSL::BN
.new(-5).ucmp(5) # => 0

OpenSSL::BN
.new(5).ucmp(OpenSSL::BN.new(-9)) # => -1
OpenSSL::BN
.new(-5).ucmp(OpenSSL::BN.new(5)) # => 0
OpenSSL::BN
.new(-5).ucmp(OpenSSL::BN.new(2)) # => 1
//}

@param other 比較する...
...整数
@raise TypeError 比較できないときに発生します。
@see OpenSSL::BN#cmp...
<< < ... 5 6 7 >>