るりまサーチ

最速Rubyリファレンスマニュアル検索!
217件ヒット [1-100件を表示] (0.037秒)
トップページ > クエリ:|[x] > クエリ:sign[x]

別のキーワード

  1. _builtin |
  2. ipaddr |
  3. set |
  4. integer |
  5. array |

モジュール

キーワード

検索結果

<< 1 2 3 > >>

BigDecimal#sign -> -3 | -2 | -1 | 0 | 1 | 2 | 3 (18803.0)

自身の符号等の性質に応じて、Integer を返します。

...、 0。 BigDecimal::SIGN_NaN と同じです。
+0 であれば、 1。 BigDecimal::SIGN_POSITIVE_ZERO と同じです。
-0 であれば、-1。 BigDecimal::SIGN_NEGATIVE_ZERO と同じです。
有限の正の値 であれば、 2。 BigDecimal::SIGN_POSITIVE_FINITE と同...
...す。
有限の負の値 であれば、-2。 BigDecimal::SIGN_NEGATIVE_FINITE と同じです。
+Infinity であれば、 3。 BigDecimal::SIGN_POSITIVE_INFINITE と同じです。
-Infinity であれば、-3。 BigDecimal::SIGN_NEGATIVE_INFINITE と同じです。

BigDecimal は、 0...
...).sign # => 0
p BigDecimal("0").sign # => 1
p BigDecimal("100").sign # => 2
p BigDecimal("Infinity").sign # => 3
p BigDecimal("-0").sign # => -1
p BigDecimal("-5").sign # => -2
p BigDecimal("-Infinity").sign # => -3

p BigDecimal("0").sign == BigDecimal::SIGN_P...

Signal.#signame(signo) -> String | nil (9313.0)

引数で指定されたシグナル番号をシグナル名に変換して返します。 対応するシグナル番号が存在しない場合は nil を返します。

...引数で指定されたシグナル番号をシグナル名に変換して返します。
対応するシグナル番号が存在しない場合は nil を返します。

Sign
al.trap("INT") { |signo| puts Signal.signame(signo) }
Process.kill("INT", 0)
# => INT

@see Signal.#list...

Signal.#signame(signo) -> String (9212.0)

引数で指定されたシグナル番号をシグナル名に変換して返します。

...引数で指定されたシグナル番号をシグナル名に変換して返します。

Sign
al.trap("INT") { |signo| puts Signal.signame(signo) }
Process.kill("INT", 0)
# => INT

@see Signal.#list...

Kernel#check_signedness(type, headers = nil, opts = nil) -> "signed" | "unsigned" | nil (6504.0)

Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.

...eturns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.

If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF...
...ype+ is
unsigned, or negative integer if the +type+ is signed.

For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGN
EDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int...

Kernel#check_signedness(type, headers = nil, opts = nil) { ... } -> "signed" | "unsigned" | nil (6504.0)

Returns the signedness of the given +type+. You may optionally specify additional +headers+ to search in for the +type+. If the +type+ is found and is a numeric type, a macro is passed as a preprocessor constant to the compiler using the +type+ name, in uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+ name, followed by '=X' where 'X' is positive integer if the +type+ is unsigned, or negative integer if the +type+ is signed. For example, if size_t is defined as unsigned, then check_signedness('size_t') would returned +1 and the SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is done.

...eturns the signedness of the given +type+. You may optionally
specify additional +headers+ to search in for the +type+.

If the +type+ is found and is a numeric type, a macro is passed as a
preprocessor constant to the compiler using the +type+ name, in
uppercase, prepended with 'SIGNEDNESS_OF...
...ype+ is
unsigned, or negative integer if the +type+ is signed.

For example, if size_t is defined as unsigned, then
check_signedness('size_t') would returned +1 and the
SIGN
EDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int...

絞り込み条件を変える

MiniTest::Unit::TestCase::SUPPORTS_INFO_SIGNAL -> Fixnum | nil (6201.0)

Signal が INFO というシグナルをサポートしているかどうかを 調べるための定数です。内部で使用します。

...
Sign
al が INFO というシグナルをサポートしているかどうかを
調べるための定数です。内部で使用します。...

Signal.#trap(signal) { ... } -> String | Proc | nil (3304.0)

指定された割り込み signal に対するハンドラとして command を登録します。 指定したシグナルが捕捉された時には例外が発生せず、代わりに command が実行されます。 ブロックを指定した場合にはブロックをハンドラとして登録します。

...指定された割り込み signal に対するハンドラとして
command を登録します。
指定したシグナルが捕捉された時には例外が発生せず、代わりに command が実行されます。
ブロックを指定した場合にはブロックをハンドラとして登...
...ンドラが登録された場合
(例えば拡張ライブラリが独自に sigaction を呼んだ場合など)
も nil を返します。

@param signal シグナル名を表す文字列か Symbol、またはシグナル番号を指定します。
さらに特別な値として 0...
...ことも出来ます。

@raise ArgumentError 引数 signalに SEGV BUS ILL FPE VTALRM を指定した場
合に発生します。また、システムに定義されていないシ
グナルを引数 signal に指定した場合に発生します。...

Signal.#trap(signal, command) -> String | Proc | nil (3304.0)

指定された割り込み signal に対するハンドラとして command を登録します。 指定したシグナルが捕捉された時には例外が発生せず、代わりに command が実行されます。 ブロックを指定した場合にはブロックをハンドラとして登録します。

...指定された割り込み signal に対するハンドラとして
command を登録します。
指定したシグナルが捕捉された時には例外が発生せず、代わりに command が実行されます。
ブロックを指定した場合にはブロックをハンドラとして登...
...ンドラが登録された場合
(例えば拡張ライブラリが独自に sigaction を呼んだ場合など)
も nil を返します。

@param signal シグナル名を表す文字列か Symbol、またはシグナル番号を指定します。
さらに特別な値として 0...
...ことも出来ます。

@raise ArgumentError 引数 signalに SEGV BUS ILL FPE VTALRM を指定した場
合に発生します。また、システムに定義されていないシ
グナルを引数 signal に指定した場合に発生します。...

Kernel.#trap(signal) { ... } -> String | Proc | nil (304.0)

signal で指定された割り込みにたいするハンドラとして command を登録します。Signal.#trapと同じです。

...
sign
al で指定された割り込みにたいするハンドラとして
command を登録します。Signal.#trapと同じです。

Sign
al.#trapの使用を推奨します。

@param signal Signal.#trap 参照
@param command Signal.#trap 参照


@see Signal.#trap,Signal...

Kernel.#trap(signal, command) -> String | Proc | nil (304.0)

signal で指定された割り込みにたいするハンドラとして command を登録します。Signal.#trapと同じです。

...
sign
al で指定された割り込みにたいするハンドラとして
command を登録します。Signal.#trapと同じです。

Sign
al.#trapの使用を推奨します。

@param signal Signal.#trap 参照
@param command Signal.#trap 参照


@see Signal.#trap,Signal...

絞り込み条件を変える

Gem::Package.open(io, mode = &#39;r&#39;, signer = nil) {|tar_io| ... } (201.0)

@todo ???

...

@param io IO オブジェクトを指定します。普通は Gem パッケージを開いたファイルオブジェクトを指定します。

@param mode モードを文字列で指定します。指定できるモードは読み込み (r) と書き込み (w) です。

@param signer ???...
<< 1 2 3 > >>