Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.php Subject: Re: casting to integer Date: Mon, 15 Feb 2016 18:08:47 +0100 Lines: 17 Message-ID: <56C2061F.9060805@arnowelzel.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net PSZ/60+hXl8/IXts2uKGkAo0EAxNC2z3bISvf7q4p6nMguCWBh Cancel-Lock: sha1:uz9vKpsKkVRCrO1jopSOEOKmxw8= In-Reply-To: Xref: csiph.com comp.lang.php:16428 bill schrieb am 2016-02-15 um 14:14: > I know it must be really simple, but I can't find it in the docs. > > How does one cast a float to an integer? $y = (int)$x; -- Arno Welzel http://arnowelzel.de http://de-rec-fahrrad.de http://fahrradzukunft.de