るりまサーチ

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

別のキーワード

  1. bigdecimal/util to_d
  2. bigdecimal round
  3. bigdecimal floor
  4. bigdecimal ceil
  5. bigdecimal div

ライブラリ

クラス

キーワード

検索結果

BigDecimal#zero? -> bool (39131.0)

self が 0 のときに true を返します。それ以外のときに false を返します。

...self が 0 のときに true を返します。それ以外のときに false を返します。

//emlist[][ruby]{
require "bigdecimal"
BigDecimal
("0").zero? # => true
BigDecimal
("1").zero? # => false
//}...

BigDecimal#nonzero? -> self | nil (27118.0)

self が 0 以外のときに self を返します。0 のときに nil を返します。

...self が 0 以外のときに self を返します。0 のときに nil を返します。

//emlist[][ruby]{
require "bigdecimal"
BigDecimal
("0").nonzero? # => nil
BigDecimal
("1").nonzero? # => 0.1e1
//}...

NEWS for Ruby 3.0.0 (24.0)

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

...3768
* Warning
* Warning#warn now supports a category keyword argument. 17122

== Stdlib updates

Outstanding ones only.

* BigDecimal
* Update to BigDecimal 3.0.0
* This version is Ractor compatible.
* Bundler
* Update to Bundler 2.2.3
* CGI
* Update to 0.2.0
* This...
...osed pipe, no broken pipe error message will be shown now. 14413
* `TRUE`/`FALSE`/`NIL` constants are no longer defined.
* Integer#zero? overrides Numeric#zero? for optimization. 16961
* Enumerable#grep and Enumerable#grep_v when passed a Regexp and no block no longer modify Regexp.last_matc...
...s`, `#frozen?`
* `Integer`: `#-@`, `#~`, `#abs`, `#bit_length`, `#even?`, `#integer?`, `#magnitude`, `#odd?`, `#ord`, `#to_i`, `#to_int`, `#zero?`
* `Struct`: reader methods for 10th or later members
* Constant references are inlined.
* Always generate appropriate code for `=...