るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.147秒)
トップページ > ライブラリ:openssl[x] > クエリ:openssl[x] > バージョン:2.6.0[x] > クエリ:e[x] > クエリ:mod_sub[x]

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. open3 capture2e
  4. matrix det_e
  5. matrix rank_e

クラス

検索結果

OpenSSL::BN#mod_sub(other, m) -> OpenSSL::BN (97021.0)

(self - other) % m を返します。

...(self - other) % m を返します。

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

OpenSSL
::BN.new("27").mod_sub(OpenSSL::BN.new("3"), OpenSSL::BN.new("5")) # => 4
//}

@param other 引く数
@param m 剰余を取る数
@raise OpenSSL::BNError 計算時エラー...

OpenSSL::BN#-(other) -> OpenSSL::BN (42664.0)

自身から other を引いた値を返します。

...自身から other を引いた値を返します。

@param other 引く整数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#mod_sub...