564件ヒット
[501-564件を表示]
(0.060秒)
別のキーワード
モジュール
- BigMath (24)
- Etc (24)
- Fiddle (24)
- FileTest (12)
- Kernel (264)
- Math (36)
- ObjectSpace (84)
-
OpenSSL
:: ASN1 (36) - Process (60)
キーワード
- BigDecimal (24)
- Rational (12)
-
allocation
_ sourceline (12) - decode (12)
- dlwrap (12)
-
each
_ object (48) - exp (12)
- fork (24)
- format (12)
- frexp (12)
- groups (12)
- lgamma (12)
- log (12)
- malloc (12)
-
memsize
_ of (12) -
memsize
_ of _ all (12) - nprocessors (12)
- putc (12)
- rand (24)
- size? (12)
- sleep (24)
- spawn (48)
- sprintf (12)
- sqrt (12)
- srand (24)
- syscall (12)
- sysconf (12)
- test (24)
- wait (12)
- wait2 (12)
- waitpid (12)
- waitpid2 (12)
検索結果
先頭5件
-
Kernel
. # BigDecimal(s , exception: true) -> BigDecimal | nil (19.0) -
引数で指定した値を表す BigDecimal オブジェクトを生成します。
...引数で指定した値を表す BigDecimal オブジェクトを生成します。
@param s 数値を表現する初期値を文字列、Integer、
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無......値が採用されます。最大有
効桁数は以下のような割り算を実行するとき等に意味を持ちます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1") / BigDecimal("3") # => 0.333333333333333333e0
BigDecimal("1",10) / BigDecimal("3",10) # => 0.333333333... -
Kernel
. # BigDecimal(s , n) -> BigDecimal (19.0) -
引数で指定した値を表す BigDecimal オブジェクトを生成します。
...引数で指定した値を表す BigDecimal オブジェクトを生成します。
@param s 数値を表現する初期値を文字列、Integer、
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無......値が採用されます。最大有
効桁数は以下のような割り算を実行するとき等に意味を持ちます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1") / BigDecimal("3") # => 0.333333333333333333e0
BigDecimal("1",10) / BigDecimal("3",10) # => 0.333333333... -
Kernel
. # BigDecimal(s , n , exception: true) -> BigDecimal | nil (19.0) -
引数で指定した値を表す BigDecimal オブジェクトを生成します。
...引数で指定した値を表す BigDecimal オブジェクトを生成します。
@param s 数値を表現する初期値を文字列、Integer、
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無......値が採用されます。最大有
効桁数は以下のような割り算を実行するとき等に意味を持ちます。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1") / BigDecimal("3") # => 0.333333333333333333e0
BigDecimal("1",10) / BigDecimal("3",10) # => 0.333333333... -
Kernel
. # putc(ch) -> object (19.0) -
文字 ch を 標準出力 $stdout に出力します。
...aise Errno::EXXX 出力に失敗した場合に発生します。
@raise TypeError Integer に変換できないオブジェクトを引数に
指定した場合に発生します。
//emlist[例][ruby]{
putc("ch")
putc(?c)
putc(99)
putc(355)
#=> cccc
putc(99.00) #=> c
putc(333333... -
Math
. # sqrt(x) -> Float (19.0) -
x の非負の平方根(principal square root)を返します。
...数を指定した場合に発生します。
@raise RangeError xに実数以外の数値を指定した場合に発生します。
//emlist[例][ruby]{
0.upto(10) {|x|
p [x, Math.sqrt(x), Math.sqrt(x)**2]
}
# => [0, 0.0, 0.0]
# [1, 1.0, 1.0]
# [2, 1.4142135623731, 2.0]
# [3, 1.73205080756......888, 3.0]
# [4, 2.0, 4.0]
# [5, 2.23606797749979, 5.0]
# [6, 2.44948974278318, 6.0]
# [7, 2.64575131106459, 7.0]
# [8, 2.82842712474619, 8.0]
# [9, 3.0, 9.0]
# [10, 3.16227766016838, 10.0]
//}
@see Integer.sqrt, Math.#cbrt... -
OpenSSL
:: ASN1 . # decode(der) -> OpenSSL :: ASN1 :: ASN1Data (19.0) -
DER 表現の文字列を解析し、そこにエンコードされている ASN.1 の値を OpenSSL::ASN1::ASN1Data のサブクラスのインスタンスとして返します。
...返します。
ASN.1 オブジェクトが Constructive である場合は、
それを構成する要素も再帰的に解析します。
例:
ruby -e '
require "openssl"
require "pp"
pem = File.read(ARGV[0])
cert = OpenSSL::X509::Certificate.new(pem)
pp OpenSSL::ASN1.decode(cert.to......=
[#<OpenSSL::ASN1::ASN1Data:0x814f690
@tag=0,
@tag_class=:CONTEXT_SPECIFIC,
@value=
[#<OpenSSL::ASN1::Integer:0x814f6a4
@tag=2,
@tag_class=:UNIVERSAL,
@tagging=nil,
@value=2>]>,
...
@param der D... -
Kernel
. # test(cmd , file1 , file2) -> bool (17.0) -
2ファイル間のファイルテストを行います。
...ル1の方がファイル2より最終更新時刻が古い
: ?-
ファイル1とファイル2が同一のファイルである
//emlist[例][ruby]{
IO.write("testfile1", "test1")
IO.write("testfile2", "test2")
%w(= < > -).each do |e|
result = test(e, "testfile1", "testfile2")
puts "#{e}: #...