5件ヒット
[1-5件を表示]
(0.071秒)
ライブラリ
- bigdecimal (4)
-
json
/ add / bigdecimal (1)
キーワード
- exponent (1)
- nonzero? (1)
-
save
_ exception _ mode (1) -
to
_ json (1) -
to
_ r (1)
検索結果
先頭5件
-
BigDecimal
# exponent -> Integer (18307.0) -
self の指数部を整数値で返します。
self の指数部を整数値で返します。 -
BigDecimal
# nonzero? -> self | nil (18307.0) -
self が 0 以外のときに self を返します。0 のときに nil を返します。
...self が 0 以外のときに self を返します。0 のときに nil を返します。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("0").nonzero? # => nil
BigDecimal("1").nonzero? # => 0.1e1
//}... -
BigDecimal
# save _ exception _ mode { . . . } -> object (18307.0) -
例外処理に関する BigDecimal.mode の設定を保存してブロックを評価し ます。ブロック中で変更した設定はブロックの評価後に復元されます。
...例外処理に関する BigDecimal.mode の設定を保存してブロックを評価し
ます。ブロック中で変更した設定はブロックの評価後に復元されます。
ブロックの評価結果を返します。... -
BigDecimal
# to _ json(*args) -> String (18307.0) -
自身を JSON 形式の文字列に変換して返します。
..._json を呼び出しています。
@param args 使用しません。
//emlist[例][ruby]{
require 'json/add/bigdecimal'
BigDecimal('0.123456789123456789').to_json # => "{\"json_class\":\"BigDecimal\",\"b\":\"36:0.123456789123456789e0\"}"
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json... -
BigDecimal
# to _ r -> Rational (307.0) -
self を Rational オブジェクトに変換します。
self を Rational オブジェクトに変換します。