Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #16428

Re: casting to integer

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.php
Subject Re: casting to integer
Date 2016-02-15 18:08 +0100
Message-ID <56C2061F.9060805@arnowelzel.de> (permalink)
References <n9siuu$1sl3$1@gioia.aioe.org>

Show all headers | View raw


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?

<http://php.net/manual/de/language.types.type-juggling.php>

$y = (int)$x;



-- 
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
http://fahrradzukunft.de

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

casting to integer bill <william@TechServSys.com> - 2016-02-15 08:14 -0500
  Re: casting to integer: solved bill <william@TechServSys.com> - 2016-02-15 08:16 -0500
  Re: casting to integer Arno Welzel <usenet@arnowelzel.de> - 2016-02-15 18:08 +0100
    Re: casting to integer bill <william@TechServSys.com> - 2016-02-16 06:47 -0500

csiph-web