Пространства имён
Варианты
Действия

fegetenv, fesetenv

Материал из cppreference.com
< c | numeric | fenv

Заголовочный файл <<fenv.h>>
int fegetenv( fenv_t* envp );
(1) (начиная с C99)
int fesetenv( const fenv_t* envp );
(2) (начиная с C99)
1)
пытается сохранить статус с плавающей точкой окружающей среды в объекте, на который указывает 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.
2)
Попытки установить с плавающей точкой окружающей среды от объекта, на который указывает 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.

Содержание

[править] Параметры

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.

[править] Пример

[править] См. также

сохраняет окружающую среду, очищает все флаги состояния и игнорирует все ошибок в будущем
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.

(функция) [edit]
Восстанавливает с плавающей точкой окружающей среды и повышает ранее вызывать исключения
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.

(функция) [edit]
умолчанию с плавающей точкой окружающей среды
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.

(константа-макрос) [edit]
C++ документация для fegetenv, fesetenv