round, lround, llround
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <math.h>
|
||
float roundf( float arg ); |
||
double round( double arg ); |
||
long double roundl( long double arg ); |
||
long lroundf( float arg ); |
||
long lround( double arg ); |
||
long lroundl( long double arg ); |
||
long long llroundf( float arg ); |
||
long long llround( double arg ); |
||
long long llroundl( long double arg ); |
||
arg
に最も近い整数を計算します。数が中途半端なケースではゼロから離れて丸められます Original:
Computes nearest integer to
arg
. Number is rounded 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.
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 to
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.
[編集] 参照
最も近い整数ではありません指定された値より大きい 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. (関数) | |
最も近い整数ではない与えられた値よりも小さい Original: nearest integer not less 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. (関数) | |
(C99) |
与えられた値よりも大きさが大きくない最も近い整数 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++ documentation for round
|