"Liz" <Liz@nospam.com> wrote in message
news:KDcuc.12469$3x.8465@attbi_s54...[color=blue]
>
> "Ryan Stewart" <zzanNOtozz@gSPAMo.com> wrote in message
> news:zP-dnae0YOZF5yXdRVn-ig@texas.net...[color=green]
> > "Liz" <Liz@nospam.com> wrote in message
> > news:jCPtc.5934$pt3.4744@attbi_s03...[color=darkred]
> > > "Ryan Stewart" <zzanNOtozz@gSPAMo.com> wrote in message
> > > news:M6GdnVliJ8JNJird4p2dnA@texas.net...
> > > > I don't think that's accurate. The *values* of primitive types are[/color][/color][/color]
set[color=blue][color=green]
> > in[color=darkred]
> > > > stone. The range of values a byte may have is that of an 8-bit[/color][/color][/color]
signed[color=blue][color=green][color=darkred]
> > > > two's-complement integer. That doesn't necessarily guarantee that a[/color][/color]
> byte[color=green][color=darkred]
> > >
> > > So you can't run java on a cray 1 because the cray 1 is a one's[/color][/color]
> complement[color=green][color=darkred]
> > > machine.
> > >[/color]
> > Can a cray 1 represent every number from -(2^7) to 2^7 - 1 (byte)?
> > From -(2^63) to 2^63 - 1 (long)? And so on? Of course it can. What use[/color]
> would[color=green]
> > a computer be if it couldn't represent numbers. As I said, the *range*[/color][/color]
of[color=blue][color=green]
> > number is what's important. How they are represented is not dictated,[/color][/color]
and[color=blue][color=green]
> > neither is how much space is used to do so.
> >
> >[/color]
> I think not.
> It's hard for me to remember now but I think in one's complement
> that the largest negative number is one bigger than that in two's comp.
> And there may be a positive and negative zero. At
>
http://java.sun.com/j2se/1.4.2/docs/...lang/Math.html
> there is descriptive stuff about what happens when an argument is
> negative zero, so I think java supports negative zero.
> I do not think negative zero is possible with two's compliment integers.
>[/color]
Oops, I made a mistake. Seymore Cray worked at CDC prior to
forming his own company and the early CDC machines he developed were
one's compliment. By the time he designed the Cray 1, he had learned
his lesson and it was two's complement.