るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.172秒)
トップページ > クエリ:-[x] > クエリ:E[x] > クエリ:d[x] > クエリ:mod_mul[x]

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. rsa d=
  4. string to_d
  5. rsa d

ライブラリ

クラス

検索結果

OpenSSL::BN#mod_mul(other, m) -> OpenSSL::BN (27407.0)

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

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

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

OpenSSL::BN.new("7").mod_mul(OpenSSL::BN.new("3"), OpenSSL::BN.new("6")) # => 3
//}

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