Re: atom = problem?
- Posted by CChris <christian.cuvier at agri?ul?ure.gouv.fr> Apr 28, 2008
- 800 views
Jeremy Cowgar wrote: > > Jason Gade wrote: > > > > It has to do with the limited precision of how floating point numbers are > > stored > > in computer memory. > > So, it has to do with the good old float problem. I had though Euphoria > extended > the capability to take care of that problem, but that's OK. I guess I can do > the unit testing like this: > > }}} <eucode> > test_equal("message", sprintf("%.10f", func()), sprintf("%.10f", > 1.1293843123)) > </eucode> {{{ > > a bit more work, but no problem. Thanks for clarifying. > > -- > Jeremy Cowgar > <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a> Not only Eu doesn't extend reals or integers, but it doesn't guarantee that the sum of two integers is an integer - a joke, really! The extension is to be made through an external library, since there is no hardware support to count on anyway. CChris