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

#1 2008-11-27 16:47:12

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Digits...

I've been mathing my head off all day and can't seem to get my head around 3-digit numbers. Basically what I'm trying to do is divide a 3-digit number into 3 numbers, one for each digit (if the number was 673, variable 1 would be six, variable 2 would be 7, variable 3 would 3). Any ideas? Any help would be greatly appreciated.

PS: I already have the first digit (the hundreds place) done, so no need to help me with that.

Last edited by coolstuff (2008-11-27 16:49:22)

Offline

 

#2 2008-11-27 18:22:16

mrweston
Scratcher
Registered: 2007-12-13
Posts: 100+

Re: Digits...

There's probably a simpler way to do this, but this works:

http://sixtyten.ca/misc/Digits.jpg

Offline

 

#3 2008-11-27 18:53:31

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Digits...

Thank you so much!

Offline

 

#4 2008-11-27 20:20:21

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Digits...

The resulting project is here: http://scratch.mit.edu/projects/coolstuff/334516

Offline

 

#5 2008-12-23 13:13:08

bubble-07
Scratcher
Registered: 2008-03-25
Posts: 17

Re: Digits...

I made a few operations on lists for digits... Some have errors, though... I'm gonna keep working.

Offline

 

Board footer