1件ヒット
[1-1件を表示]
(0.124秒)
ライブラリ
- openssl (1)
検索結果
-
OpenSSL
:: BN # ucmp(other) -> -1 | 0 | 1 (72682.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 比較する整数
@ra......ise TypeError 比較できないときに発生します。
@see OpenSSL::BN#cmp...