Re: Floating point inaccuracies
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Floating point inaccuracies
- From: Patrick Rapin <toupie300@...>
- Date: 2010年11月30日 17:30:31 +0100
OK, everybody seem to agree that my idea is a bad one, so let's forget it.
Personally, I never had a problem with floating point inaccuracy in
Lua. In fact, most of of time, my code only use integer values...
My proposition was mainly targeted to Lua beginners!
Steve's idea of a computation module is good, but probably such a
module should not included in the core distribution.
And what about a simple function in math module like:
math.compare(value1, value2, delta)
returning -1, 0 or 1 ?