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 ofFLT_EVAL_METHOD, the types offloat_tanddouble_tare 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
- Copyright 2020, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms