るりまサーチ

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

別のキーワード

  1. _builtin sum
  2. enumerable sum
  3. array sum
  4. string sum

検索結果

<< < 1 2 3 4 > >>

OptionParser#summary_indent=(indent) (6100.0)

サマリを表示する時のインデントを文字列で指定します。

...pdate")
opts.on_tail("-h", "--help")
end

opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_indent = " " # => " "
opts.summary_indent # => " "
opts.summarize
# => [" -i, --init\n", " -u, --update\n"...

OptionParser#summary_width -> Integer (6100.0)

サマリを表示するときの幅を整数で返します。

...pts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8
opts.summary_width # =>8
opts.summarize
# => [" -i\n", " --init\n", " -u\n", "...

OptionParser#summary_width=(width) (6100.0)

サマリを表示するときの幅を整数で指定します。

...on("-u", "--update")
opts.on_tail("-h", "--help")
end

opts.summary_width # => 32
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summary_width = 8 # => 8
opts.summary_width # => 8
opts.summarize
# => [" -i\n", " --init\n", " -u\n", "...

PStore::EMPTY_MARSHAL_CHECKSUM -> String (6100.0)

内部で利用する定数です。

内部で利用する定数です。

RubyVM::MJIT.resume -> bool (6100.0)

RubyVM::MJIT.pause で一時停止した JIT を再開します。

RubyVM::MJIT.pause で一時停止した JIT を再開します。

@return 再開したときは true を、すでに動いているときは false を返します。
@raise RuntimeError JIT が有効ではないときに発生します。
@raise RuntimeError JIT の再開に失敗した時に発生します。

@see RubyVM::MJIT.enabled?, RubyVM::MJIT.pause

絞り込み条件を変える

Socket::Constants::IPV6_CHECKSUM -> Integer (6100.0)

Byte offset into a packet where the checksum is located. BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Byte offset into a packet where the checksum is located.
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
ip6(4freebsd),
3542...

Socket::IPV6_CHECKSUM -> Integer (6100.0)

Byte offset into a packet where the checksum is located. BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Byte offset into a packet where the checksum is located.
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
ip6(4freebsd),
3542...

Gem::Package::BadCheckSum (6000.0)

チェックサムが一致しない場合に発生する例外です。

チェックサムが一致しない場合に発生する例外です。

Gem::Package::TarInput#extract_entry(destdir, entry, expected_md5sum = nil) (107.0)

指定された destdir に entry を展開します。

...param destdir 展開先のディレクトリを指定します。

@param entry エントリを指定します。

@param expected_md5sum 期待する MD5 チェックサムを指定します。

@raise Gem::Package::BadCheckSum チェックサムが一致しなかった場合に発生します。...

NEWS for Ruby 2.4.0 (48.0)

NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...バッファを再利用するためにオプションキーワード引数 buffer: を取るようになりました。
* Array#sum 12217
Enumerable#sum と違って each メソッドに依存しません。

* Comparable
* Comparable#clamp を追加 10594

* Dir
* Dir.empty?...
...10121

* Enumerable
* Enumerable#chunk ブロックを省略した場合 Enumerator を返すようになりました。2172
* Enumerable#sum を追加 12217
* Enumerable#uniq を追加 11090

* Enumerator::Lazy
* Enumerator::Lazy#chunk_while を追加 https://github.com/ruby/ru...
...)

* Array#sum と Enumerable#sum を追加しました。 12217
Ruby2.4以前ではArray#sumはなかったのでRuby自身には互換性の問題はありません。
しかし、多くのサードパーティ製のGem(activesupport, facets, simple_stats, etc)で
sum
メソッドを...

絞り込み条件を変える

bigdecimal (48.0)

bigdecimal は浮動小数点数演算ライブラリです。 任意の精度で 10 進表現された浮動小数点数を扱えます。

...。][ruby]{
sum
= 0
for i in (1..10000)
sum
= sum + 0.0001
end
print sum # => 0.9999999999999062
//}

//emlist[例2: 0.0001 を 10000 回足す場合。(BigDecimal)][ruby]{
require 'bigdecimal'

sum
= BigDecimal("0")
for i in (1..10000)
sum
= sum + BigDecimal("0.0001")
end
print sum # => 0.1e1
/...
<< < 1 2 3 4 > >>