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


Groups > comp.lang.php > #16426

Re: casting to integer: solved

From bill <william@TechServSys.com>
Newsgroups comp.lang.php
Subject Re: casting to integer: solved
Date 2016-02-15 08:16 -0500
Organization Aioe.org NNTP Server
Message-ID <n9sj36$1sl3$2@gioia.aioe.org> (permalink)
References <n9siuu$1sl3$1@gioia.aioe.org>

Show all headers | View raw


On 2/15/2016 8:14 AM, bill wrote:
> 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?
> I tried round and floor but both leave var as float, although
> with a float approximation of an integer.
>
> This is for comparison.
>
> bill

of course, just as soon as I sent the request for help, I found 
the answer: intval

bill

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