Get count of digits in a number - how to

To get the count of digits in a number:

floor ( log10 ( number ) ) + 1

Just to throw it out there :)

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    @ericzingeler

    Thanks, Eric, might be handy one day. :-) B-)
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Nice! I like that I can try out math formulas in Spotlight (OS X), too. That one works like a charm.
  • ericzingelerericzingeler Member Posts: 334
    Nice! I like that I can try out math formulas in Spotlight (OS X), too. That one works like a charm.
    The best overlooked feature in OS X!
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    I do all my math formulas in Spotlight too! It's really the only thing I use it for.
  • darrelfdarrelf Member Posts: 243
    Thanks @ericzingeler. When I see stuff like this from you and other more advanced users than myself, it really does show how powerful GS can be with some knowledge of formulae
Sign In or Register to comment.