Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why use signed integers?

Name: Anonymous 2012-09-26 12:17

I've noticed that, in quite a few MMORPGs, the stackable item/money cap is (2^31)-1, or 2,147,483,647.

But why use a signed integer? Do you really need negative amounts of items?

Why not use unsigned integers and then have the cap be (2^32)-1?

Name: Anonymous 2012-09-27 17:56

>>29
Shalom!

Name: Anonymous 2012-09-27 18:16

>>29
the number of characters
What does this have to do with anything? When checking for EOF, programs loop through each individual character. That's what it's for.

Name: Anonymous 2012-09-27 18:17

Thanks, >>30-kun. I was waiting your reply. Your reply made my day.

Name: Anonymous 2012-09-27 18:19

>>31
Oh I mixed up FILE* and the int counter for some stupid reason. Sorry.

Name: Anonymous 2012-09-27 18:56

>>26
Someone could make an I/O library (not stdio compatible) that does this for text files, but binary files need the ability to store any character, including the control characters.

Name: Anonymous 2012-09-27 20:31

>>23
Just because a server uses a 64-bit CPU and OS doesn't mean its users do. Many people still use old CPUs with 32-bit bus widths, and thus still use 32-bit OSes and require 32-bit game clients.

Name: Anonymous 2012-09-27 20:41

>>35
Implying there's no such thing as carry bits

Name: Anonymous 2012-09-27 21:08

>>36
get your retarded ass back to /g/ please

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List