[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: pcb crooked traces
John Doty:
> On Oct 10, 2010, at 5:38 AM, Karl Hammar wrote:
> > On the downside for integers we have, if I may cite John Doty:
> > "There are subtle problems with carrying real number analytic
> > geometry into a discrete domain."
> > So far I have not found any good reasons for using integers, and John
> > has presented a wery good one for NOT using them. If we can get rid of
> > thoose "subtle" problems, we will have a more healthy program and it
> > will also be easier for new developers to join (in that part).
> You misunderstand.
Well, that is always possible.
> Computer floats are not real numbers: they are discrete elements of
> a finite set.
Yes, I now that. Ok, I thought you meant floats in the cited paragraph.
> Their behavior is more difficult to comprehend than the behavior of
> integers.
It seems some people are "scared" by floats, is it that you mean?
And --- integers have their trouble spots also, consider:
A,
Is -1/2 equal to -1 or -0
Is -1%2 equal to -1 or +1
B,
Why does
#include <stdio.h>
int main(void) {
char cc = 0xc4 // 'ä' in latin1
short str = cc;
printf("0x%04hx\n", str);
}
print 0xffc4 instead of 0x00c4 ?
But the comprehension dimension of numbers is not for me to discuss, but
if someone has problems with it, I'm willing to help out.
Regards,
/Karl Hammar
---------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user