std::nextafter, std::nexttoward
Материал из cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Заголовочный файл <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) |
Возвращает следующий представимо значение
4) 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.
[править] Пример
| Этот раздел не завершён Причина: нет примера |