This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-07 19:12:18

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

This IS possible, but you would probably be confused.

Make your computer count from 0 to -1 with the number being 64-bit.

Last edited by ThePCKid (2011-05-07 19:12:32)

Offline

 

#2 2011-05-07 19:34:39

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: This IS possible, but you would probably be confused.

Are you talking about getting the computer to loop the number around when it get's to high?


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#3 2011-05-07 19:47:05

ThePCKid
Scratcher
Registered: 2009-09-16
Posts: 1000+

Re: This IS possible, but you would probably be confused.

scratcher7_13 wrote:

Are you talking about getting the computer to loop the number around when it gets to high?

*ding* *ding* *ding*
WE HAVE A WINNER!

Offline

 

#4 2011-05-07 20:00:01

bananaman114
Scratcher
Registered: 2010-03-15
Posts: 1000+

Re: This IS possible, but you would probably be confused.

I don't entirely get the whole concept of 64 bit...
endorsing a tecnicality here, couldn't you just open calculater, make the first number 0, and add (-1)?


the sun still shines

Offline

 

#5 2011-05-07 21:54:04

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: This IS possible, but you would probably be confused.

Easy. 64Bit.

All you have to do is keep adding 1 and you will get to -1


0 = 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
1 = 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001
2 = 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010
3 = 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011
4 = 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0100
...
-1 = 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111

In binary if the far left is one it means the number is negative. All ones means -1


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#6 2011-05-07 22:03:46

jfmlove6
Scratcher
Registered: 2010-12-20
Posts: 1000+

Re: This IS possible, but you would probably be confused.

I don't feel like doing it, because my aunt or uncle will get on this laptop and go "Huh? Jenna, what'd you do?"


http://bbsimg.ngfiles.com/1/23337000/ngbbs4e84d18f6a0ee.jpg

Offline

 

#7 2011-05-08 09:11:48

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Re: This IS possible, but you would probably be confused.

I'll do it with 4-bit because I'm lazy.

0000
0001
0010
0011
0100
0101
0110
0111
1000
1001     TA-DAAAAAA


Crizapples

Offline

 

#8 2011-05-08 09:21:38

johndo77
Scratcher
Registered: 2010-07-30
Posts: 1000+

Re: This IS possible, but you would probably be confused.

I'm running a program right now.

Code:

#include <iostream>
using namespace std;

int main () {
    
    int number=0;
    
    while (number != -1) {
        cout << number << endl;
        number = number + 1;
    }
}

Edit: it's in the nine-millions. :O

Edit: I just realized that this will almost never end. :(((((

Last edited by johndo77 (2011-05-08 09:31:39)


Crizapples

Offline

 

Board footer