[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: At the edge of LNUM patch
- From: "Peter Cawley" <lua@...>
- Date: Tue, 25 Mar 2008 20:43:16 +0000
PHP juggles between integers and floating point seamlessly;
>From http://www.php.net/manual/en/language.types.integer.php "If you
specify a number beyond the bounds of the integer type, it will be
interpreted as a float instead. Also, if you perform an operation that
results in a number beyond the bounds of the integer type, a float
will be returned instead. "
Perhaps it is worth investigating the fine details of what PHP does in
this regard?
On 25/03/2008, Ariel Manzur <puntob@gmail.com> wrote:
> On Tue, Mar 25, 2008 at 10:55 AM, <askok@dnainternet.net> wrote:
> [...]
>
> > Before 2008, I used to have LNUM patch always return FP
> > results to an integer, if possible. This, however, slowed
> > down _all_ FP operations slightly, and was never feeling
> > 'right'. The current way does feel right for me, and I bet
>
>
> Is it possible to disable conversion from integers to FP too? (maybe
> with a compile time option).
>
- References:
- Best Practices for Lua -> "Lua+"?, Adrian Perez
- Re: Best Practices for Lua -> "Lua+"?, Alexander Gladysh
- Re: Best Practices for Lua -> "Lua+"?, Asko Kauppi
- Re: Best Practices for Lua -> "Lua+"?, Roberto Ierusalimschy
- At the edge of LNUM patch, Asko Kauppi
- Re: At the edge of LNUM patch, Alex Davies
- Re: At the edge of LNUM patch, Asko Kauppi
- RE: At the edge of LNUM patch, Grellier, Thierry
- Re: At the edge of LNUM patch, askok
- Re: At the edge of LNUM patch, Ariel Manzur