lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2016-04-15 10:15 GMT+02:00 Enrico Colombini <erix@erix.it>:

> I wondered about what numbers Google consider to be 'integer'. It happens to
> be about here:
>
>  y = x ^ (1 / 2.9999999999999999)
>
> Take out one '9' and only the x-positive part of the curve is shown.

This happens to correspond exactly with Lua.

> 3-2.9999999999999999
0.0
> 3-2.999999999999999
8.8817841970013e-16

Maybe Google, too, uses IEEE 754 arithmetic?