68件ヒット
[1-68件を表示]
(0.078秒)
ライブラリ
- bigdecimal (56)
-
json
/ add / bigdecimal (12)
検索結果
先頭5件
-
BigDecimal
# clone -> self (6102.0) -
self を返すように、BigDecimal で定義されています。
...self を返すように、BigDecimal で定義されています。... -
BigDecimal
# exponent -> Integer (6102.0) -
self の指数部を整数値で返します。
self の指数部を整数値で返します。 -
BigDecimal
# nonzero? -> self | nil (6102.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 (6102.0) -
例外処理に関する BigDecimal.mode の設定を保存してブロックを評価し ます。ブロック中で変更した設定はブロックの評価後に復元されます。
...例外処理に関する BigDecimal.mode の設定を保存してブロックを評価し
ます。ブロック中で変更した設定はブロックの評価後に復元されます。
ブロックの評価結果を返します。... -
BigDecimal
# to _ json(*args) -> String (6102.0) -
自身を JSON 形式の文字列に変換して返します。
...JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_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......身を JSON 形式の文字列に変換して返します。
内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json......に渡されます。
//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 (102.0) -
self を Rational オブジェクトに変換します。
...self を Rational オブジェクトに変換します。...