fegetenv, fesetenv
Материал из 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. |
| Заголовочный файл <<fenv.h>>
|
||
| int fegetenv( fenv_t* envp ); |
(1) | (начиная с C99) |
| int fesetenv( const fenv_t* envp ); |
(2) | (начиная с C99) |
пытается сохранить статус с плавающей точкой окружающей среды в объекте, на который указывает
2) envp.Original:
Attempts to store the status of the floating-point environment in the object pointed to by
envp.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.
Попытки установить с плавающей точкой окружающей среды от объекта, на который указывает
envp. значение этого Объект должен быть предварительно получен вызов feholdexcept или fegetenv или быть плавающей точкой макро постоянным. Если любое из чисел с плавающей точкой флаги состояния устанавливаются в envp, они становятся установлены в окружающей среде (и то с проверяемым fetestexcept), но соответствующие плавающей точкой исключений не поднимается (выполнение продолжается непрерывно)Original:
Attempts to establish the floating-point environment from the object pointed to by
envp. The value of that object must be previously obtained by a call to feholdexcept or fegetenv or be a floating-point macro constant. If any of the floating-point status flags are set in envp, they become set in the environment (and are then testable with fetestexcept), but the corresponding floating-point exceptions are not raised (execution continues uninterrupted)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.
Содержание |
[править] Параметры
| envp | - | Указатель на объект типа fenv_t который имеет статус с плавающей точкой окружающей среды
Original: pointer to the object of type fenv_t which holds the status of the floating-point environment The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[править] Возвращаемое значение
0 на успех, ненулевое иначе.
Original:
0 on success, non-zero otherwise.
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.
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| (C99) |
сохраняет окружающую среду, очищает все флаги состояния и игнорирует все ошибок в будущем Original: saves the environment, clears all status flags and ignores all future errors The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция) |
| (C99) |
Восстанавливает с плавающей точкой окружающей среды и повышает ранее вызывать исключения Original: restores the floating-point environment and raises the previously raise exceptions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция) |
| (C99) |
умолчанию с плавающей точкой окружающей среды Original: default floating-point environment The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (константа-макрос) |
| C++ документация для fegetenv, fesetenv
| |