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

Floating point environment

Материал из cppreference.com
Плавающей точкой окружающей среды является набор чисел с плавающей точкой флаги состояния и режимов управления поддерживается реализацией. Это является поточно-местный, каждый поток наследует начальное состояние своего плавающей точкой окружающей среды от родительского потока. Операции с плавающей запятой изменения плавающей точкой флаги состояния указывает ненормальные результаты или вспомогательной информации. Состоянии с плавающей точкой режимов управления влияет на результаты некоторых операций с плавающей запятой.
Original:
The floating-point environment is the set of floating-point status flags and control modes supported by the implementation. It is thread-local, each thread inherits the initial state of its floating-point environment from the parent thread. Floating-point operations modify the floating-point status flags to indicate abnormal results or auxiliary information. The state of floating-point control modes affects the outcomes of some floating-point operations.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Плавающей точкой доступа окружающую среду и изменение имеет смысл только при #pragma STDC FENV_ACCESS установлен в ON. В противном случае реализация свободна предположить, что с плавающей точкой режимов управления всегда по умолчанию, и что с плавающей точкой флаги статуса никогда не проверялись или изменены. На практике несколько текущих компиляторы поддерживают #pragma явно, но большинство компиляторов позволяют реальный доступ к плавающей точкой окружающей среды все равно.
Original:
The floating-point environment access and modification is only meaningful when #pragma STDC FENV_ACCESS is set to ON. Otherwise the implementation is free to assume that floating-point control modes are always the default ones and that floating-point status flags are never tested or modified. In practice, few current compilers support the #pragma explicitly, but most compilers allow meaningful access to the floating-point environment anyway.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Типы

Определено в файле <fenv.h>
fenv_t
Тип представляющая весь плавающей точкой окружающей среды
Original:
The type representing the entire 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.
fexcept_t
Типа, представляющие все с плавающей точкой флаги состояния коллективно
Original:
The type representing all floating-point status flags collectively
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Функции

очищает указанный плавающей точкой флаги статуса
Original:
clears the specified floating-point status flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(функция) [edit]
определяет, какая из указанных плавающей точкой флаги состояния устанавливаются
Original:
determines which of the specified floating-point status flags are set
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(функция) [edit]
Возникает указанного плавающей точкой исключений
Original:
raises the specified floating-point 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:
copies the state of the specified floating-point status flags from or to 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.

(функция) [edit]
получает или задает направление округления
Original:
gets or sets rounding direction
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(функция) [edit]
сохраняет или восстанавливает текущую плавающей точкой окружающей среды
Original:
saves or restores the current 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]
сохраняет окружающую среду, очищает все флаги состояния и игнорирует все ошибок в будущем
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:
floating-point 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:
floating-point rounding direction
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]