06-29-2012 08:43 AM
Offtopic, @Ben:
Your second image looks like spaghetti code to me
@Anarki:
Gerd is right: Are you looking for something solved with math or are you looking for string handling?
Norbert
06-29-2012 08:51 AM
could you elaborate a little bit though? quotient and remainder does something like this right? 13/5=2 r5. how does this help me?
06-29-2012 08:54 AM
@Norbert_B wrote:
@Offtopic, @Ben:
Your second image looks like spaghetti code to me
...
Norbert
I ussed to carry crochet needles in my tool box. a "BIOS update" back then required physical rewiring of that back-plane with some of the wirewraps being seven layers deep.
Sea-story:
After completing school on that critter I was scheduled to do maintenance on one of those beasts. I had an experienced engineer on-site "just in case'. While adjusting a power supply I slipped shorting 15 volts to the 5 volt bus and blowing out boards in the tpae drive the 11-40 front end as well as could of other widgets. When I realized what I had done i wen to teh lunch room where the experienced engineer was reading the news paper and told him what happened. He looked up from the paper then back down and said "You broke it, you fix it.".
That was a very long night.
Ben
06-29-2012 08:54 AM
Hi anarki,
some basic math:
"078" QR 10: Q = "07" and R="8"
" 07" QR 10: Q = "0" and R="7"
" 0" QR 10: Q = "0" and R="0"
Wow, you have three remainders which magically are the digits of your 3 digit number. Wow. Simple basic math. Wow.
06-29-2012 08:55 AM
I simply want to take each digit out of a number and subject it to a certain function. If that means I need to convert the digit to a string because its necessary, that is not a problem. but if the initial number is 7, I need to use 007. that is absolutely necessary
06-29-2012 08:55 AM
ok
06-29-2012 12:30 PM
Is it possible it would be easier for you to use an array (or 3-element cluster) of numeric controls, and set the input range for each of them to 0-9?