double_t(3type)

๐Ÿ’– double_t(3type) ๐Ÿ’–

okay bestie, welcome to the manual page for double_t โ€” and its ride-or-die float_t โ€” from section 3type. yes we're doing types today, and honestly? it's giving "tiny page, huge personality" โœจ


๐ŸŒธ NAME ๐ŸŒธ

float_t, double_t โ€” the most efficient floating types, periodt ๐Ÿ’…


๐Ÿ“š LIBRARY ๐Ÿ“š

Math library (libm) ๐Ÿงฎ


โœจ SYNOPSIS โœจ

#include <math.h>

typedef /* ... */ float_t;
typedef /* ... */ double_t;

the /* ... */ is not me being lazy, that's literally what the page says, because the actual type is a mystery the implementation decides ๐Ÿซถ


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so these are the implementation's most efficient floating types, and they're at least as wide as float and double respectively. key word at least, bestie, they can go bigger ๐Ÿ‘‘

and what they actually are? depends on the value of the macro FLT_EVAL_METHOD, which lives in <float.h>:

FLT_EVAL_METHOD       float_t      double_t
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
       0                float        double
       1               double        double
       2          long double   long double

so like, method 0? you get plain float and double, cute and chill ๐ŸŒˆ. method 1? both of them are double โ€” float_t leveled up ๐Ÿ“ˆ. method 2? EVERYBODY is long double, main character energy only ๐Ÿ’€โœจ

โš ๏ธ and for any other values of FLT_EVAL_METHOD, the types of float_t and double_t are implementation-defined. so no guessing games, bestie โ€” it's whatever your implementation says it is, no cap ๐Ÿ™ˆ

โญ STANDARDS โญ

C11, POSIX.1-2024. certified iconic ๐Ÿ“œ


๐ŸŽ€ HISTORY ๐ŸŽ€

C99, POSIX.1-2001. so they've been around since the olden days, lowkey a legacy queen ๐Ÿ’œ


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

go read those next, iykyk ๐Ÿงš


and that's the whole page!! ๐Ÿ’–โœจ this delightful little number came to you courtesy of Linux man-pages 6.20, dated 2026-02-08 โ€” slay, ate, no crumbs ๐ŸŽ€๐Ÿ’…๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from
  • arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • ๐Ÿ“œ the page's license: Linux-man-pages-copyleft
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms