.\" -*- coding: UTF-8 -*- .\" Copyright 2001 Andries Brouwer . .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH FLOOR 3 "15. März 2016" "" Linux\-Programmierhandbuch .SH BEZEICHNUNG floor, floorf, floorl \- größte ganze Zahl, die nicht größer als das Argument ist .SH ÜBERSICHT .nf \fB#include \fP .sp \fBdouble floor(double \fP\fIx\fP\fB);\fP .br \fBfloat floorf(float \fP\fIx\fP\fB);\fP .br \fBlong double floorl(long double \fP\fIx\fP\fB);\fP .fi .sp Linken Sie mit der Option \fI\-lm\fP. .sp .in -4n Mit Glibc erforderliche Makros (siehe \fBfeature_test_macros\fP(7)): .in .sp .ad l \fBfloorf\fP(), \fBfloorl\fP(): .RS 4 _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L || /* Seit Glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc\-Versionen <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE .ad .SH BESCHREIBUNG Diese Funktionen geben den größten integralen Wert zurück, der nicht größer ist als \fIx\fP. Beispiele: \fBfloor\fP(\fI0.5\fP) ist 0.0 und \fBfloor\fP(\fI\-0.5\fP) ist \-1.0. .SH RÜCKGABEWERT Diese Funktionen geben den Wert der Gaußklammer\-Funktion (floor function) von \fIx\fP zurück. Falls \fIx\fP eine ganze Zahl, +0, \-0, NaN oder unendlich ist, wird \fIx\fP zurückgegeben. .SH FEHLER Es treten keine Fehler auf. POSIX.1\-2001 dokumentiert für Überläufe einen Bereichsfehler, aber lesen Sie dazu die ANMERKUNGEN. .SH ATTRIBUTE Siehe \fBattributes\fP(7) für eine Erläuterung der in diesem Abschnitt verwandten Ausdrücke. .TS allbox; lbw27 lb lb l l l. Schnittstelle Attribut Wert T{ \fBfloor\fP(), \fBfloorf\fP(), \fBfloorl\fP() T} Multithread\-Fähigkeit MT\-Safe .TE .SH "KONFORM ZU" C99, POSIX.1\-2001, POSIX.1\-2008. Die Variante, die \fIdouble\fP zurückgibt, ist außerdem konform zu SVr4, 4.3BSD, C89. .SH ANMERKUNGEN .\" The POSIX.1-2001 APPLICATION USAGE SECTION discusses this point. SUSv2 und POSIX.1\-2001 enthalten Textpassagen über Überlauf. (Er könnte \fIerrno\fP auf \fBERANGE\fP setzen oder einen \fBFE_OVERFLOW\fP\-Ausnahmefehler auslösen.) Praktisch kann auf keinem aktuellen Rechner das Ergebnis überlaufen, so dass diese Überlegungen zur Fehlerbehandlung einfach Unsinn sind. (Genauer gesagt, kann ein Überlauf nur eintreten, wenn der maximale Wert des Exponenten kleiner als die Anzahl der Mantissen\-Bits ist. Für die Standard\-32\-Bit\- und \-64\-Bit\-Fließkommazahlen ist der maximale Wert des Exponenten 128 (bzw. 1024) und die Anzahl der Mantissen\-Bits ist 24 (bzw. 53).) .SH "SIEHE AUCH" \fBceil\fP(3), \fBlrint\fP(3), \fBnearbyint\fP(3), \fBrint\fP(3), \fBround\fP(3), \fBtrunc\fP(3) .SH KOLOPHON Diese Seite ist Teil der Veröffentlichung 4.09 des Projekts Linux\-\fIman\-pages\fP. Eine Beschreibung des Projekts, Informationen, wie Fehler gemeldet werden können sowie die aktuelle Version dieser Seite finden sich unter \%https://www.kernel.org/doc/man\-pages/. .SH ÜBERSETZUNG Die deutsche Übersetzung dieser Handbuchseite wurde von Martin Schulze und Martin Eberhard Schauer erstellt. Diese Übersetzung ist Freie Dokumentation; lesen Sie die GNU General Public License Version 3 oder neuer bezüglich der Copyright-Bedingungen. Es wird KEINE HAFTUNG übernommen. Wenn Sie Fehler in der Übersetzung dieser Handbuchseite finden, schicken Sie bitte eine E-Mail an .