13a8617a8SJordan K. Hubbard.\" Copyright (c) 1985, 1991 The Regents of the University of California. 23a8617a8SJordan K. Hubbard.\" All rights reserved. 33a8617a8SJordan K. Hubbard.\" 43a8617a8SJordan K. Hubbard.\" Redistribution and use in source and binary forms, with or without 53a8617a8SJordan K. Hubbard.\" modification, are permitted provided that the following conditions 63a8617a8SJordan K. Hubbard.\" are met: 73a8617a8SJordan K. Hubbard.\" 1. Redistributions of source code must retain the above copyright 83a8617a8SJordan K. Hubbard.\" notice, this list of conditions and the following disclaimer. 93a8617a8SJordan K. Hubbard.\" 2. Redistributions in binary form must reproduce the above copyright 103a8617a8SJordan K. Hubbard.\" notice, this list of conditions and the following disclaimer in the 113a8617a8SJordan K. Hubbard.\" documentation and/or other materials provided with the distribution. 12fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 133a8617a8SJordan K. Hubbard.\" may be used to endorse or promote products derived from this software 143a8617a8SJordan K. Hubbard.\" without specific prior written permission. 153a8617a8SJordan K. Hubbard.\" 163a8617a8SJordan K. Hubbard.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 173a8617a8SJordan K. Hubbard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 183a8617a8SJordan K. Hubbard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 193a8617a8SJordan K. Hubbard.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 203a8617a8SJordan K. Hubbard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 213a8617a8SJordan K. Hubbard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 223a8617a8SJordan K. Hubbard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 233a8617a8SJordan K. Hubbard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 243a8617a8SJordan K. Hubbard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 253a8617a8SJordan K. Hubbard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 263a8617a8SJordan K. Hubbard.\" SUCH DAMAGE. 273a8617a8SJordan K. Hubbard.\" 283a8617a8SJordan K. Hubbard.\" from: @(#)floor.3 6.5 (Berkeley) 4/19/91 297f3dea24SPeter Wemm.\" $FreeBSD$ 303a8617a8SJordan K. Hubbard.\" 31*4b7f35dbSGordon Bergling.Dd April 3, 2022 323a8617a8SJordan K. Hubbard.Dt FLOOR 3 333a8617a8SJordan K. Hubbard.Os 343a8617a8SJordan K. Hubbard.Sh NAME 357a15a32aSJordan K. Hubbard.Nm floor , 367e2ee1f0SStefan Farfeleder.Nm floorf , 377e2ee1f0SStefan Farfeleder.Nm floorl 38aa842e6aSBruce Evans.Nd largest integral value less than or equal to x 3964890443SBruce Evans.Sh LIBRARY 4064890443SBruce Evans.Lb libm 413a8617a8SJordan K. Hubbard.Sh SYNOPSIS 4232eef9aeSRuslan Ermilov.In math.h 433a8617a8SJordan K. Hubbard.Ft double 443a8617a8SJordan K. Hubbard.Fn floor "double x" 457a15a32aSJordan K. Hubbard.Ft float 467a15a32aSJordan K. Hubbard.Fn floorf "float x" 47113ed1bbSRuslan Ermilov.Ft "long double" 487e2ee1f0SStefan Farfeleder.Fn floorl "long double x" 493a8617a8SJordan K. Hubbard.Sh DESCRIPTION 503a8617a8SJordan K. HubbardThe 517e2ee1f0SStefan Farfeleder.Fn floor , 527a15a32aSJordan K. Hubbard.Fn floorf 53113ed1bbSRuslan Ermilovand 547e2ee1f0SStefan Farfeleder.Fn floorl 55f598d051SRuslan Ermilovfunctions return the largest integral value 563a8617a8SJordan K. Hubbardless than or equal to 57aa842e6aSBruce Evans.Fa x , 58aa842e6aSBruce Evansexpressed as a floating-point number. 593a8617a8SJordan K. Hubbard.Sh SEE ALSO 603a8617a8SJordan K. Hubbard.Xr abs 3 , 613a8617a8SJordan K. Hubbard.Xr ceil 3 , 623a8617a8SJordan K. Hubbard.Xr fabs 3 , 633a8617a8SJordan K. Hubbard.Xr ieee 3 , 6475141cc9SWolfram Schneider.Xr math 3 , 65a9a0bf07SDavid Schultz.Xr rint 3 , 66a9a0bf07SDavid Schultz.Xr round 3 , 67a9a0bf07SDavid Schultz.Xr trunc 3 683a8617a8SJordan K. Hubbard.Sh STANDARDS 693a8617a8SJordan K. HubbardThe 703a8617a8SJordan K. Hubbard.Fn floor 713a8617a8SJordan K. Hubbardfunction conforms to 72588a200cSRuslan Ermilov.St -isoC . 737e2ee1f0SStefan FarfelederThe 747e2ee1f0SStefan Farfeleder.Fn floorf 75113ed1bbSRuslan Ermilovand 767e2ee1f0SStefan Farfeleder.Fn floorl 777e2ee1f0SStefan Farfelederfunctions conform to 787e2ee1f0SStefan Farfeleder.St -isoC-99 . 79*4b7f35dbSGordon Bergling.Sh HISTORY 80*4b7f35dbSGordon BerglingA 81*4b7f35dbSGordon Bergling.Fn floor 82*4b7f35dbSGordon Berglingfunction first appeared in 83*4b7f35dbSGordon Bergling.At v5 . 84