std::ceil
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <cmath>
|
||
float ceil( float arg ); |
||
double ceil( double arg ); |
||
long double ceil( long double arg ); |
||
double ceil( Integral arg ); |
(C++11およびそれ以降) | |
arg
未満でない最も近い整数を計算. Original:
Computes nearest integer not less than
arg
. The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] パラメータ
arg | - | 浮動小数点値
Original: floating point value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
arg
未満でない最も近い整数Original:
Nearest integer not less than
arg
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[[Image:
値を返します
|200x200px]]Original:
{{{2}}}
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Argument
[編集] ノート
引数が無限大(正または負)かゼロ(正または負)である場合、戻り値は引数と同じです.
Original:
If the argument is infinity (positive or negative) or zero (positive or negative), the return value is the same as the argument.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
最大の表現可能な浮動小数点値は、この関数を決してあふれないように、すべての標準的な浮動小数点形式での正確な整数である.
Original:
The largest representable floating-point values are exact integers in all standard floating-point formats, so this function never overflows.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
この関数は、必ずしも要求されない場合があり、非整数の引数の浮動小数点例外をFE_INEXACT上げる.
Original:
This function may, but is not required to, raise FE_INEXACT floating-point exceptions for non-integer arguments.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 例
このコードを実行します
出力:
12.000000 13.000000 13.000000 13.000000 13.000000
[編集] 参照
最も近い整数ではありません指定された値より大きい Original: nearest integer not greater than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
(C++11) |
与えられた値よりも大きさが大きくない最も近い整数 Original: nearest integer not greater in magnitude than the given value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |
(C++11) (C++11) (C++11) |
最も近い整数値、中間値の場合でゼロから離れる丸め Original: nearest integer, rounding away from zero in halfway cases The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |
(C++11) (C++11) (C++11) |
結果が異なる場合 を除いて、現在の丸めモードを使用して、最も近い整数 Original: nearest integer using current rounding mode with exception if the result differs The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |
(C++11) |
現在の丸めモードを使用して、最も近い整数 Original: nearest integer using current rounding mode The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |