std::nextafter, std::nexttoward
cppreference.com
[] |
Google. . , . , . |
<metanoindex/>
<tbody> </tbody> 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 .:
Returns the next representable value of
from in the direction of to. If from equals to to, to is returned.4)
- ,
double. long double, long double, double:
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| from, to |
| : |