Jump to content

T Minus and Counting 2016


whisty
 Share

Recommended Posts

  • Replies 2.7k
  • Created
  • Last Reply

Top Posters In This Topic

Same as yesterday really. 11111111 is binary for 255. With 8 binary digits, you can express 255 different values, with the highest of those values being 255/(in decimal) and the lowest being 0.

As a computer person, I have instantly recognise all the numbers in this sequence:

1,2,4,8,16,32,64,128,256,512,1024 etc..

I imagine that most people will recognise a few of these numbers as the size of SD cards, or the amount of RAM you get in a phone. In binary, they are:

1,11,111,1111,11111,111111,1111111,11111111.....

You may notice that each number in the sequence is double the previous value.

Has this helped anyone or made things more confusing? Hopefully the former :)

Edited by stuartbert two hats
Link to comment
Share on other sites

Lifes way too short for all that binary stuff. I can't even understand normal numbers.

 

Anyway a dedication to Yoghurt and his Glastonbury comeback. It's a 255/85R16

 

16238-2558516bfgkm2-2558516qbfgkm2.jpg

 

And a topical one for me.

 

BM1.jpg

Link to comment
Share on other sites

The bit (no pun intended...) I didn't understand was what looked like a sum: 0 minus 1 equals 255

That is pretty strange, even for programmers!

You'd think it was strange for programmers, but it's not!

@- is the Swift operator for "subtraction with overflow". Now the type in question is an 8-bit integer, which can hold 256 values. This means that it cannot represent any values other than 0-255. So, if you attempt to subtract 1 from 0(the minimum value), it will 'overflow' to the maximum value (255).

You may think this is odd behaviour and you'd be right, but it can help with arithmetic efficiency in some circumstances and has been a behaviour in programming languages since before Glastonbury Festival began.

EDIT: have I made it worse?

Edited by stuartbert two hats
Link to comment
Share on other sites

You'd think it was strange for programmers, but it's not!

@- is the Swift operator for "subtraction with overflow". Now the type in question is an 8-bit integer, which can hold 256 values. This means that it cannot represent any values other than 0-255. So, if you attempt to subtract from 0(the minimum value), it will 'overflow' to the maximum value (255).

You may think this is odd behaviour and you'd be right, but it can help with arithmetic efficiency in some circumstances and has been a behaviour in programming languages since before Glastonbury Festival began.

EDIT: have I made it worse?

No, all quite clear now thanks; languages are a thing I can do, so is maths. Never got into programming language though #MissedOpportunity

Link to comment
Share on other sites

hi there!

tried to follow the thread and got a bit lost !

But just wanted say hello!! 

I joined the thread in preparation for Glastonbury 2014 but stopped posting for no real important reasons.

Anyway - really enjoyed that year :) and was gutted I couldn't get tickets for 2015 :(

 

But I have for 2016!! and looking forward to the count down for it :) and to saying "hello" to folk here :)

Edited by Rincewind78
Link to comment
Share on other sites

hi there!

tried to follow the thread and got a bit lost !

But just wanted say hello!! 

I joined the thread in preparation for Glastonbury 2014 but stopped posting for no real important reasons.

Anyway - really enjoyed that year :) and was gutted I couldn't get tickets for 2015 :(

 

But I have for 2016!! and looking forward to the count down for it :) and to saying "hello" to folk here :)

 

Good news then, excitement building with every day that passes   :)

 

253_heart_sticker-p217504807726598402tr4

 

locomotora_253_014.jpg

Edited by whisty
Link to comment
Share on other sites

hi there!

tried to follow the thread and got a bit lost !

But just wanted say hello!! 

I joined the thread in preparation for Glastonbury 2014 but stopped posting for no real important reasons.

Anyway - really enjoyed that year :) and was gutted I couldn't get tickets for 2015 :(

 

But I have for 2016!! and looking forward to the count down for it :) and to saying "hello" to folk here :)

 

Hello and welcome Rincewind78. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.



×
×
  • Create New...