[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: not enough real programmers? (was Re: Byte Magazine: 18 Vintage issues, 1985-1986)
In comp.arch.embedded Luc Van der Veken <lucvdv@null.net> wrote:
> > Ok, I found it in: http://www-cse.ucsd.edu/users/kube/stdc/types.html
> > minimum range for a long is (-2^31, 2^31). They don't force you to use
> > 2's complement but you do need 32 bits. ;-)
> If those limits are inclusive, doesn't that make it require 33
> bits? All ranges he lists on that page seem to have that same
> one-off error.
If you look at it carefully, he seems to use the convention (a,b)
to indicate non-inclusive ranges and [a,b] to indicate inclusive
ranges.
Hence my comment above about not forcing the "off by 1" to the
-ve or +ve side.
> it seems like the official standard can't be found on the web
How much does it cost to buy?
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Spehro Pefhany "The Journey is the reward"
speff@interlog.com
Fax:(905) 271-9838 (small micro system devt hw/sw + mfg)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=