Re: search for exact number

On Tue, 26 May 2009, Morten Welinder wrote:
Will the comparison be tolerant?  That means two numbers are
considered equal if their _relative_ difference is smaller than a very
small number(eg. 2^-44).

Small range.  (One ulp to either side, give or take.)

Sorry for being dense, what is ulp? Also, is comparison with zero
always intolerant?

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver --recv-keys 4434BAB3
唐詩041 李白  子夜四時歌  秋歌
    長安一片月  萬戶擣衣聲  秋風吹不盡  總是玉關情  何日平胡虜  良人罷遠征

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