Simple Question...I hope
Archiver
Posts: 46,084
Hello!
I'm trying to do something that I hoped would be simple with the
STAMP2P...
Let's say I have a 3-digit number, from 1 to 999. I want to
seperate the ONEs, TENs and HUNDREDs place. So, 205 could be broken
up into it's 3 parts of 2 0 and 5. Any ideas on how I could do
this??
Thanks in advance!
Kris Hain
I'm trying to do something that I hoped would be simple with the
STAMP2P...
Let's say I have a 3-digit number, from 1 to 999. I want to
seperate the ONEs, TENs and HUNDREDs place. So, 205 could be broken
up into it's 3 parts of 2 0 and 5. Any ideas on how I could do
this??
Thanks in advance!
Kris Hain
Comments
hundreds = myValue DIG 2
tens = myVAlue DIG 1
ones = myValue DIG 0
You can find DIG in the operators section of the manual.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: kristoffer_hain [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=CwXYkR0vnEzjMToSIO5ALy78ybHJibiopvK2tFUQKqddmVpQY0ZqlSwckVOSyUqPq-T_eeldWsgk8QsJ_cU7mvPpj3eSwA]haink@k...[/url
Sent: Monday, April 05, 2004 5:27 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Simple Question...I hope
Hello!
I'm trying to do something that I hoped would be simple with the
STAMP2P...
Let's say I have a 3-digit number, from 1 to 999. I want to
seperate the ONEs, TENs and HUNDREDs place. So, 205 could be broken
up into it's 3 parts of 2 0 and 5. Any ideas on how I could do
this??
Thanks in advance!
Kris Hain
Regards,
Al Williams
AWC
* Add floating point math to the Stamp
http://www.awce.com/pak12.htm
Original Message
From: kristoffer_hain [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=GEFNtwidTHp2Wpc7oa2Q83tgJeQBbk2T9YzAQUgNAmDDgFS7h6A6jwCDJ88Mmk15TyV114JC98VoC3FOC9YPDisA0YYlhD9M]haink@k...[/url
Sent: Monday, April 05, 2004 5:27 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Simple Question...I hope
Hello!
I'm trying to do something that I hoped would be simple with the
STAMP2P...
Let's say I have a 3-digit number, from 1 to 999. I want to
seperate the ONEs, TENs and HUNDREDs place. So, 205 could be broken
up into it's 3 parts of 2 0 and 5. Any ideas on how I could do
this??
Thanks in advance!
Kris Hain
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Yahoo! Groups Links
haink@k... writes:
> Let's say I have a 3-digit number, from 1 to 999. I want to
> seperate the ONEs, TENs and HUNDREDs place. So, 205 could be broken
> up into it's 3 parts of 2 0 and 5. Any ideas on how I could do
> this??
>
Go to the Help section of the Editor and read up on the " //" operator. That
will let you do what you want.
Sid
[noparse][[/noparse]Non-text portions of this message have been removed]
>
>I'm trying to do something that I hoped would be simple with the
>STAMP2P...
>
>Let's say I have a 3-digit number, from 1 to 999. I want to
>seperate the ONEs, TENs and HUNDREDs place. So, 205 could be broken
>up into it's 3 parts of 2 0 and 5. Any ideas on how I could do
>this??
>
>Thanks in advance!
>Kris Hain
Kris, look up the DIG operator
ones=number DIG 0
tens= number DIG 1
hundreds = number DIG 2
-- Tracy