"Kenneth" <kdw### [at] gmail com> wrote:
> Here's my attempt, using string commands-- which are a bit tricky to implement;
I haven't read your code - have an unexpectedly busy morning here....
But why don't you just write a macro that takes your number as an argument, and
determines if its (abs val) is over 10 or under 1.
Then you can just run a loop by multiplying/dividing by 10 until you're in that
range, and then your exponent is the (signed) loop value.
Might be easier.
I recall I did something like this to buffer the str() output for a #debug
stream with spaces to make everything line up nicely. No idea what scene code
that was in.
- BW
Post a reply to this message
|