On Mon, 07 Jul 2008 09:52:24 +1000
Tim Ansell <[EMAIL PROTECTED]> wrote:

> > I could easily change it to be universe at the center with size as a
> > radius. But now that I think about it, why doesn't everything just
> > use floats and normalized positions? Wouldn't that be nicer on
> > client side too? So the clients could scale and do other math
> > trivially?
> 
> Floats are a pain in the butt to transmit, encode and receive
> (specially across multiple languages).
> 
> Ints are much easier hence that is why we use them.

And of course operations on integers are nicely defined.  Not so with floats,
so a difference in a calculation performed on the client & server is a bug
with a int, with a float, it's an implementation issue. 

The classic case:
double x = 3/7.0;
if (x == x/7.0) 
        printf("Equal\n");
else
        printf("Not Equal\n");

A conforming IEEE implementation may print "Not Equal".  

        Best to avoid when distributing.

        Regards,
        nash
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to