std::trunc
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
ヘッダ <cmath> で定義
|
||
float trunc( float arg ); |
(C++11およびそれ以降) | |
double trunc( double arg ); |
(C++11およびそれ以降) | |
long double trunc( long double arg ); |
(C++11およびそれ以降) | |
double trunc( Integral arg ); |
(C++11およびそれ以降) | |
arg
よりも大きさが大きくない最も近い整数を計算. Original:
Computes nearest integer not greater in magnitude 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 greater in magnitude 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:
The integer value can be always represented by the given floating point type.
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.
[編集] 参照
指定された値より大きくない最も近い整数を返します (関数) | |
指定された値より小さくない最も近い整数を返します (関数) | |
(C++11)(C++11)(C++11) |
最も近い整数を返します。 ちょうど中間の場合はゼロから離れる方向に丸めます (関数) |