# Detecting number of digits in a variable

**URL:** https://forum.kirupa.com/t/detecting-number-of-digits-in-a-variable/297614
**Category:** Uncategorized
**Created:** [October 6, 2009, 1:24am UTC](https://forum.kirupa.com/t/detecting-number-of-digits-in-a-variable/297614 "2009-10-06T01:24:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)
#### Post date: [October 6, 2009, 1:24am UTC](https://forum.kirupa.com/t/detecting-number-of-digits-in-a-variable/297614/1 "2009-10-06T01:24:15Z")

</div>

i want to center some dynamic numbers in a circle… but of course it won’t align properly when there a more digits. So i need to know how many digits there are in order to offset the numbers to center.
