std::nextafter, std::nexttoward
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <cmath>
|
||
float nextafter( float from, float to ); |
(1) | (C++11およびそれ以降) |
double nextafter( double from, double to ); |
(2) | (C++11およびそれ以降) |
long double nextafter( long double from, long double to ); |
(3) | (C++11およびそれ以降) |
Promoted nextafter( Arithmetic from, Arithmetic to ); |
(4) | (C++11およびそれ以降) |
float nexttoward( float from, long double to ); |
(5) | (C++11およびそれ以降) |
double nexttoward( double from, long double to ); |
(6) | (C++11およびそれ以降) |
long double nexttoward( long double from, long double to ); |
(7) | (C++11およびそれ以降) |
double nexttoward( Integral from, long double to ); |
(8) | (C++11およびそれ以降) |
from
の方向にto
の次に表現可能な値を返します。 from
はto
に等しい場合、to
が返されます。.Original:
Returns the next representable value of
from
in the direction of to
. If from
equals to to
, to
is returned.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.
いずれかの引数が整数型を持つ場合、それはdoubleにキャストされます。他の引数はlong doubleあれば、戻り値の型はlong double、それ以外の場合はdoubleです
Original:
If any argument has integral type, it is cast to double. If any other argument is long double, then the return type is long double, otherwise it is double
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.
[編集] パラメータ
from, to | - | 浮動小数点値
Original: floating point values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
from
の方向にto
の次に表現可能な値.Original:
the next representable value of
from
in the direction of to
.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.
[編集] 例
This section is incomplete Reason: no example |