Get count of digits in a number - how to
ericzingeler
Member Posts: 334
To get the count of digits in a number:
floor ( log10 ( number ) ) + 1
Just to throw it out there
floor ( log10 ( number ) ) + 1
Just to throw it out there
Comments
@ericzingeler
Thanks, Eric, might be handy one day. :-) B-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User