lua-users home
lua-l archive

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



-- Pierre-Yves


On Wed, Dec 1, 2010 at 21:54, Sam Roberts <vieuxtech@gmail.com> wrote:
2010/12/1 Pierre-Yves Gérardy <pygy79@gmail.com>:
 
Floating point behaviour is common to most programming languages, what
does this have to do with lua?

That's true. However, the question is asked often on the list, which warrants a FAQ entry, by definition. 

I joind the list in February of this year, and I've found 4 occurrences of newbie questions related to floating point arithmetics.

"Floating Point inaccuracies"
http://lua-users.org/lists/lua-l/2010-11/msg01018.html

"math.floor and rounding"
http://lua-users.org/lists/lua-l/2010-09/msg00685.html

"Why do some math functions return -0"
http://lua-users.org/lists/lua-l/2010-09/msg00628.html

"not all numbers are treated the same way"
http://lua-users.org/lists/lua-l/2010-07/msg00424.html

Cheers,
--Pierre-Yves