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

#1 2011-07-26 14:18:43

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Completely foolproof number sensor

View this project. It senses if what you type is a number or not, and it's completely foolproof! The code is simple:
http://i.imgur.com/TwBar.png
Feel free to use this number sensor in your own projects!

Offline

 

#2 2011-07-26 14:41:44

sleep-less
New Scratcher
Registered: 2011-07-26
Posts: 2

Re: Completely foolproof number sensor

Way cool.

Offline

 

#3 2011-07-26 15:07:26

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: Completely foolproof number sensor

Your algorithm will say that 123f4 is not a number even though Scratch itself thinks that it is. Check this one out:

http://i.imgur.com/sGUGX.gif


http://www.danasoft.com/citysign.jpg

Offline

 

#4 2011-08-01 09:54:10

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Re: Completely foolproof number sensor

Yes, my project doesn't really work now that I've tested it.

Offline

 

#5 2011-08-01 10:27:05

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Completely foolproof number sensor

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer