Jump to content

Stripovi


Recommended Posts

Objašnjenje za non-gikove:

U 16-bitne brojeve može da stane 65536 vrednosti (dva na 16 je 65536)

Pola od toga ide na pozitivne, pola na negativne brojeve (odnosno "skoro" pola jer jedna vrednost treba da se odvoji i za nulu)

Tako da je opseg [-32768..0..32767]

E sad ako je prva cifra u 16-bitnom zapisu 0, onda je pozitivan, ako je 1 onda je negativan

Npr 0000000000000001 je +1

1000000000000001 je neki negativan broj, zavisno da li je zapis u prvom ili drugom komplementu

I sad ako prosto inkrementirate sirov broj, kad dođete do 0111111111111111, što je 32767, sledeći broj počinje sa kecom i onda upadate u negativne i onda se ovce kao oduzimaju LOL

Link to comment
Share on other sites

  • Replies 1.8k
  • Created
  • Last Reply

Top Posters In This Topic

brain dmg ...

2008-12-02-beartato-selfdepricating.gif

Have you ever noticed that it's only 'perfect' people who are murdered or killed in horrific accidents?

"He was the perfect son" or "She was the perfect daughter."

"Such a tragic accident they were the perfect family."

"They died together, the perfect couple till the end."

Makes me glad I abuse my kids and beat up my wife.

Kind of makes me immortal.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • Create New...