るりまサーチ

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

別のキーワード

  1. _builtin rational
  2. rational **
  3. json/add/rational to_json
  4. json/add/rational json_create
  5. rational to_d

キーワード

検索結果

NEWS for Ruby 2.2.0 (30.0)

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

...or は発生しなくなりました。
* ArgumentError is no longer raised when lambda Proc is passed as a
block, and the number of yielded arguments does not match the formal
arguments of the lambda, if just an array is yielded and its length
matches.

* Process
* Proce...
...生成します。
* Time.strptime は引数が日付や時刻の情報を含まない場合、ArgumentErrorを発生させます。

* lib/rational.rb
* 2009年から非推奨だったので削除しました。

* lib/complex.rb
* 2009年から非推奨だったので削除しま...
...隠されました 6083
かわりに rb_integer_pack と rb_integer_unpack を使います

* struct RRational は隠されました 9513
かわりに rb_rational_num と rb_rational_den を使います

* rb_big_new と rb_big_resize は long のかわりに size_t を受け取りま...

NEWS for Ruby 2.1.0 (24.0)

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

...i'という接尾辞を付けられるようになりました
//emlist{
# r を付けると有理数になる
42r # => Rational(42, 1)
3.14 # => 3.14.rationalize
6.022e+23r # 指数形式と一緒には使えない

# i を付けると虚数単位 i を掛けた数になる...
...TypeError を発生させるようになりました。

* Proc
* Returning from lambda proc now always exits from the Proc, not from the
method where the lambda is created. Returning from non-lambda proc exits
from the method, same as the former behavior.

* String
* 以...