Isolating Digits

Are you unhappy with the default kerning? Do you want each digit to be in its own bubble? Easy!
Here’s steps - everything else is easier:

(floor(#ZSC#/10000))

will give you the first digit,

(floor((#ZSC#-(10000*floor(#ZSC#/10000)))/1000))

will give you the second digit,

(floor((#ZSC#-(1000*floor(#ZSC#/1000)))/100))

(recognize a pattern?) is the third digit,

(floor((#ZSC#-(100*floor(#ZSC#/100)))/10))

is the fourth digit, and as always,

(#ZSC#-10*floor(#ZSC#/10))

the last digit is relatively simple.

Next class: Using these values to make odometer-style dials. Stay tuned!

2 Likes

Well…
Not quite.
The first one will give you the first digit and EVERYTHING above it.
From number “1234567890” it will give you “123456”.

Check out @Mellin’s “Twisted” watch in inspection mode to see all of the formulas.

You can do the same using those formulas for images of numerals if you can’t use an actual font. Here’s my Rusty Meter watch. I got the formulas from Mellins watch

Thanks,
John

Well shucks, now I don’t feel so clever. :slight_smile:

I got the digits too: