round, lround, llround
Материал из 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. |
| Заголовочный файл <math.h>
|
||
| float roundf( float arg ); |
(начиная с C99) | |
| double round( double arg ); |
(начиная с C99) | |
| long double roundl( long double arg ); |
(начиная с C99) | |
| long lroundf( float arg ); |
(начиная с C99) | |
| long lround( double arg ); |
(начиная с C99) | |
| long lroundl( long double arg ); |
(начиная с C99) | |
| long long llroundf( float arg ); |
(начиная с C99) | |
| long long llround( double arg ); |
(начиная с C99) | |
| long long llroundl( long double arg ); |
(начиная с C99) | |
Вычисляет ближайшее целое к
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++ документация для round
| |