Pages:
Author

Topic: What is a "signed int"? - page 2. (Read 2491 times)

legendary
Activity: 1512
Merit: 1036
December 08, 2011, 07:33:30 AM
#13
int prob_of_overflow ( myAge , actuarial.lifeTable )
vip
Activity: 490
Merit: 271
December 08, 2011, 03:30:16 AM
#12
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJO3YnoAAoJEFonJil8Kq9nW50H/RXpag1ZM9Yz9w1l/JDBa+tc
vA/VyZFRQbo2f+H+6TuQ7iFjgCraOuT6CUkRwpkXMw2cJ0ofD87ftnayLM7SxKH+
Xey8APQV7Vm3yXYKH7tDGcXuo9DrQLpT0pKkTuWmoOwH884evhDOVHPm1ev/lGot
lXARdBb6Jf1ANdaeOP22RxWL97UxZWF0ePvN0z3bPNehza/sHqmOlXdiETAjkiKy
juaQ6TdfhBFuhNY0QY50R9HEItkwG+69H2dguV3B472cjHcHvv5bUCTrK8wPCwhw
up/5WEsW56lv6e06mU4r0XNGTkAzQ5B5AgTLHTdMvUMabZ4Lfygzy7+5jU/QhJ4=
=scw1
-----END PGP SIGNATURE-----

Theymos a little humorous, but (±1) for BTCurious Smiley
hero member
Activity: 700
Merit: 500
December 08, 2011, 03:18:04 AM
#11
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJO3YnoAAoJEFonJil8Kq9nW50H/RXpag1ZM9Yz9w1l/JDBa+tc
vA/VyZFRQbo2f+H+6TuQ7iFjgCraOuT6CUkRwpkXMw2cJ0ofD87ftnayLM7SxKH+
Xey8APQV7Vm3yXYKH7tDGcXuo9DrQLpT0pKkTuWmoOwH884evhDOVHPm1ev/lGot
lXARdBb6Jf1ANdaeOP22RxWL97UxZWF0ePvN0z3bPNehza/sHqmOlXdiETAjkiKy
juaQ6TdfhBFuhNY0QY50R9HEItkwG+69H2dguV3B472cjHcHvv5bUCTrK8wPCwhw
up/5WEsW56lv6e06mU4r0XNGTkAzQ5B5AgTLHTdMvUMabZ4Lfygzy7+5jU/QhJ4=
=scw1
-----END PGP SIGNATURE-----

hahahaahahahahah
hero member
Activity: 714
Merit: 500
December 08, 2011, 03:16:45 AM
#10
I don't get it  Angry
newbie
Activity: 18
Merit: 0
December 07, 2011, 09:57:32 PM
#9
I wonder if he'll ever become more public about his identity. Certainly, at the very least, he's a funny guy.
hero member
Activity: 784
Merit: 1000
bitcoin hundred-aire
December 06, 2011, 07:04:25 PM
#8
It's the "within the next 25 years" part that makes the quote funny. Representing time with a signed int doesn't become a problem for a long time, so Satoshi was being sarcastic.

Am I the only one who finds this quote funny? Maybe it needs more context.
I found it funny, but that's because I have background in Unix timekeeping and C jargon. I assume the average person doesn't have this knowledge, and therefore it would not make sense to them.

I also found it funny.  Doesn't need more context right now, but maybe when "commoners" adopt Bitcoin...
full member
Activity: 154
Merit: 102
Bitcoin!
December 05, 2011, 11:55:39 PM
#7
@BTCurious  It took me 2 full seconds to get it.  I can't believe it took that long!  Good job. Would buy again.
hero member
Activity: 714
Merit: 504
^SEM img of Si wafer edge, scanned 2012-3-12.
December 05, 2011, 10:20:34 PM
#6
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJO3YnoAAoJEFonJil8Kq9nW50H/RXpag1ZM9Yz9w1l/JDBa+tc
vA/VyZFRQbo2f+H+6TuQ7iFjgCraOuT6CUkRwpkXMw2cJ0ofD87ftnayLM7SxKH+
Xey8APQV7Vm3yXYKH7tDGcXuo9DrQLpT0pKkTuWmoOwH884evhDOVHPm1ev/lGot
lXARdBb6Jf1ANdaeOP22RxWL97UxZWF0ePvN0z3bPNehza/sHqmOlXdiETAjkiKy
juaQ6TdfhBFuhNY0QY50R9HEItkwG+69H2dguV3B472cjHcHvv5bUCTrK8wPCwhw
up/5WEsW56lv6e06mU4r0XNGTkAzQ5B5AgTLHTdMvUMabZ4Lfygzy7+5jU/QhJ4=
=scw1
-----END PGP SIGNATURE-----
newbie
Activity: 33
Merit: 0
December 05, 2011, 09:50:06 PM
#5
A signed integer can be either negative or positive (- or +), such as 55 and -55.  An unsigned int can only be positive.  If you only need to deal with positive numbers, you should use unsigned ints because the maximum integer number the type can hold will be twice as much as a signed int.

Correct.

We could get into the amount of values it can hold, but that maybe a little more advanced (like a 64 bit unsigned integer).
legendary
Activity: 1246
Merit: 1077
December 05, 2011, 07:06:02 PM
#4
It's the "within the next 25 years" part that makes the quote funny. Representing time with a signed int doesn't become a problem for a long time, so Satoshi was being sarcastic.

Am I the only one who finds this quote funny? Maybe it needs more context.
I found it funny, but that's because I have background in Unix timekeeping and C jargon. I assume the average person doesn't have this knowledge, and therefore it would not make sense to them.
administrator
Activity: 5222
Merit: 13032
December 05, 2011, 06:54:26 PM
#3
It's the "within the next 25 years" part that makes the quote funny. Representing time with a signed int doesn't become a problem for a long time, so Satoshi was being sarcastic.

Am I the only one who finds this quote funny? Maybe it needs more context.
full member
Activity: 154
Merit: 102
Bitcoin!
December 05, 2011, 04:37:16 PM
#2
A signed integer can be either negative or positive (- or +), such as 55 and -55.  An unsigned int can only be positive.  If you only need to deal with positive numbers, you should use unsigned ints because the maximum integer number the type can hold will be twice as much as a signed int.
newbie
Activity: 28
Merit: 0
December 05, 2011, 04:33:40 PM
#1
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi

What is a signed int and why should they be unsigned, according to Satoshi?
Pages:
Jump to: