Skip to main content
Detonate 2004
Inspiring
Aug 4, 2006 6:07 PM UTC
Answered

x10 incremented counter

ok. this is a pretty long chunk of code.
it's x10 basic math but can't figure how to simplify into shorter syntax.

This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
Aug 10, 2006 3:18 PM UTC
well, i still dont' understand the relationship. with what in the code i gave are you having trouble?

if you want the 10**0 digit, it's digitA[0]
if you want the 10**1 digit, it's digitA[1]
if you want the 10**2 digit, it's digitA[2]
.
.
.
if you want the 10**N digit, it's digitA

7 replies

kglad
Community Expert
Community Expert
Aug 10, 2006 5:59 PM UTC
you're welcome.
Translate
kglad
Community Expert
Community Expert
Aug 9, 2006 6:15 PM UTC
what's the relationshipt between that website/counter and your thread?
Translate
Detonate 2004
Inspiring
Aug 10, 2006 12:24 PM UTC
kglad,
on the URL provided in my last reply, the initial counter goes up to hundreds.
In my 1st post I am using tenmillions for count.

I was wondering if there was a way to simplify the large chunk of code in my 1st post.
(Had to figure out a syntax mistake with a misplaced "0" in order to finaly make it work.)

Tried implementing your sugg. but couldn't make it work all together...
Translate
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
Aug 10, 2006 3:18 PM UTC
well, i still dont' understand the relationship. with what in the code i gave are you having trouble?

if you want the 10**0 digit, it's digitA[0]
if you want the 10**1 digit, it's digitA[1]
if you want the 10**2 digit, it's digitA[2]
.
.
.
if you want the 10**N digit, it's digitA
Translate
kglad
Community Expert
Community Expert
Aug 5, 2006 5:42 PM UTC
try, for example:

Translate
Detonate 2004
Inspiring
Aug 9, 2006 5:35 PM UTC
kglad, thanks a bunch for your reply!
I tried implementing your approach with the String/Array
but couldn't convert the current graphical countner into proper use.

If you can spare a few, take a look at:
http://www.agavegroup.com/?p=60



Translate