On Wed, Dec 20, 2006 at 12:49:56AM +0100, freenetwork at web.de wrote:
> >On Tue, Dec 19, 2006 at 10:16:42PM +0100, freenetwork at web.de wrote:
> >> >Ensure the location is in between 0.0 and 1.0 on PeerManager.distance()
> >>=20
> >> >      * Both parameters must be in [0.0, 1.0].
> >>=20
> >> mustn't that be [0.0, 1.0[ ? i thought 0.0 is the same as 1.0?
> 
> >They're the same. But both are valid.
> 
> what's the reason to have 0.0/1.0 to be populated twice? one time as 0.0 and 
> one time as 1.0.
> so 0.1 is the same as 1.1? but the max is 1.0, so why is then 0.0 the same as 
> 1.0 ? i simply don't understand the reasoning for this

Exact equality is a bit dubious with floating point numbers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20061219/e17b1d20/attachment.pgp>

Reply via email to