[erlang-questions] erlang float comparison
Angel J. Alvarez Miguel
Tue May 15 13:26:26 CEST 2012
On Martes, 15 de Mayo de 2012 12:02:51 Pierpaolo Bernardi escribió:
> On Tue, May 15, 2012 at 11:04 AM, Angel J. Alvarez Miguel <>
> > The problem can be stated as:
> > Result = case Myfloat > 1.0 of
> > true -> 1.0;
> > false MyFloat
> > end
> > ...
> > ...
> > math:acos(Result).
> > after that we came across some values that fail to pass the test > 1.0
> > but are seen as greater to the math:acos function rendering a bad
> > arithmetic expression error
> If true, this indicates a serious bug. You should report such cases.
> I am somewhat skeptical that such a gross bug would lie undetected so
> far in erlang, so please supply an actual reproducible example.
I agree , please let me recheck the whole thing from the very begining.
It starts smelling a bit, like i messed something up...
More information about the erlang-questions