help-octave
[Top][All Lists]
Advanced

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

Re: Is this an fwrite/fread bug or just a floating point quirk?


From: Francesco Potorti`
Subject: Re: Is this an fwrite/fread bug or just a floating point quirk?
Date: Thu, 26 Apr 2007 10:09:16 +0200

>Another solution would be an almost_equal(a, b, tolerance) that acts 
>like isequal(a,b) but returns true as long as a and b are within a 
>certain tolerance of each other. And in this case the tolerance would be 
>the double value where all bits are zero except the bottom 29 which are 1.

The assert function does something very similar to what you ask.

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
Web: http://fly.isti.cnr.it/           Key:   fly.isti.cnr.it/public.key


reply via email to

[Prev in Thread] Current Thread [Next in Thread]