float.h

float.h
Стандартная библиотека
языка программирования С

float.h — заголовочный файл стандартной библиотеки языка программирования С, который содержит макрос, определяющий различные ограничения и параметры типов с плавающей точкой.

Макросы

Макросы, описанные в секции 5.2.4.2.2 стандарта ISO 9899:1999:

  • FLT_ROUNDS — способ округления при сложении чисел с плавающей точкой:
    • −1 — не определено
    • 0 — в сторону нуля;
    • 1 — в сторону ближайшего числа;
    • 2 — к положительной бесконечности;
    • 3 — к отрицательной бесконечности;
    • другие значения означают, что отдается преимущество машинно-зависимому способу округления.
  • FLT_EVAL_METHOD — определяет форматы результатов вычислений, включающий типы с плавающей точкой
    • −1 — не определено
    • 0 — привести результаты всех операций и константы лишь с точностью до типа;
    • 1 — привести результаты операций и константы типов float и double к типу double;
    • 2 — привести результаты операций и констант к типу long double;
    • другие значения означают, что отдается преимущество машинно-зависимому способу округления.
  • FLT_RADIX — основание для представления порядка, например: 2, 16
  • FLT_MANT_DIG, DBL_MANT_DIG, LDBL_MANT_DIG — количество цифр по основанию FLT_RADIX в мантиссе.
  • DECIMAL_DIG — (хотя бы 10)
  • FLT_DIG, DBL_DIG, LDBL_DIG — количество верных десятичных цифр
  • FLT_MIN_EXP, DBL_MIN_EXP, LDBL_MIN_EXP
  • FLT_MIN_10_EXP, DBL_MIN_10_EXP, LDBL_MIN_10_EXP, (хотя бы -37)
  • FLT_MAX_EXP, DBL_MAX_EXP, LDBL_MAX_EXP
  • FLT_MAX_10_EXP, DBL_MAX_10_EXP, LDBL_MAX_10_EXP (хотя бы +37)
  • FLT_MAX, DBL_MAX, LDBL_MAX — максимальное число с плавающей точкой
  • FLT_EPSILON, DBL_EPSILON, LDBL_EPSILON — минимальное х, такое, что 1.0 + x != 1.0
  • FLT_MIN, DBL_MIN, LDBL_MIN — минимальное нормализованное число с плавающей точкой

Ссылки


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Полезное


Смотреть что такое "float.h" в других словарях:

  • Float — or floating may refer to the following:Float* Float (fishing), a bite indicator used in angling * Float, a Cascading Style Sheets attribute. * Float (parade), a decorated vehicle or platform, animal or man drawn or motorized, used in a festive… …   Wikipedia

  • Float — (fl[=o]t), n.[OE. flote ship, boat, fleet, AS. flota ship, fr. fle[ o]tan to float; akin to D. vloot fleet, G. floss raft, Icel. floti float, raft, fleet, Sw. flotta. [root] 84. See {Fleet}, v. i., and cf. {Flotilla}, {Flotsam}, {Plover}.] 1.… …   The Collaborative International Dictionary of English

  • float — float·abil·i·ty; float·able; float; float·less; float·o·blast; float·sam; float·stone; re·float; float·er; float·a·tive; float·ing·ly; …   English syllables

  • Float — [floʊt ], der; s, s [engl. float, eigtl. = das Fließen, Fluss, zu: to float ↑ floaten] (Bankw.): Summe der von Konten abgebuchten, aber noch nicht gutgeschriebenen Zahlungen im bargeldlosen Zahlungsverkehr. * * * I Float,   Kurzbezeichnung für… …   Universal-Lexikon

  • Float On — Saltar a navegación, búsqueda «Float On» Sencillo de Modest Mouse del álbum Good News for People Who Love Bad News Publicación 14 de febrero, 2004 Formato CD …   Wikipedia Español

  • float — 1 n 1: an amount of money represented by checks outstanding and in process of collection 2: the time between a transaction (as the writing of a check or a purchase on credit) and the actual withdrawal of funds to cover it float 2 vi of a currency …   Law dictionary

  • Float — Float, v. i. [imp. & p. p. {Floated}; p. pr. & vb. n. {Floating}.] [OE. flotien, flotten, AS. flotian to float, swim, fr. fle[ o]tan. See {Float}, n.] 1. To rest on the surface of any fluid; to swim; to be buoyed up. [1913 Webster] The ark no… …   The Collaborative International Dictionary of English

  • Float.h — Стандартная библиотека языка программирования С assert.h complex.h ctype.h errno.h fenv.h float.h inttypes.h iso646.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stdbool.h stddef.h stdint.h stdio.h …   Википедия

  • float — ► VERB 1) rest on the surface of a liquid without sinking. 2) move slowly, hover, or be suspended in a liquid or the air. 3) put forward (an idea) as a suggestion or test of reactions. 4) (usu. as adj. floating) remain unsettled in one s opinions …   English terms dictionary

  • float|y — «FLOH tee», adjective, float|i|er, float|i|est. 1. that can float; buoyant. 2. (of a ship) needing very little water to float …   Useful english dictionary

  • Float — Float, v. t. 1. To cause to float; to cause to rest or move on the surface of a fluid; as, the tide floated the ship into the harbor. [1913 Webster] Had floated that bell on the Inchcape rock. Southey. [1913 Webster] 2. To flood; to overflow; to… …   The Collaborative International Dictionary of English


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»