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: David Bateman
Subject: Re: Is this an fwrite/fread bug or just a floating point quirk?
Date: Thu, 26 Apr 2007 12:04:01 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Francesco Potorti` wrote:
>> 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.
>
>   
Except that if it fails it returns an error....

D.

-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



reply via email to

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