<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a5a1e3ce-00fa-46e4-9a75-58c2aed9e8ce/Notion_Fundamentals_with_Thomas_Frank_-_Avatar_2021.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a5a1e3ce-00fa-46e4-9a75-58c2aed9e8ce/Notion_Fundamentals_with_Thomas_Frank_-_Avatar_2021.png" width="40px" /> $log_{10}$ can be used to perform an interesting mathematical trick – finding the length (i.e. number of digits) in any number. It is done by taking the floor value of a number’s $log_{10}$, then adding one:

$$ \lfloor log_{10}n \rfloor + 1 $$

The example database below shows this trick in action.

Created by Thomas Frank | Learn Notion Formulas | Notion Basics | Templates | Twitter

</aside>

Length of a Number

// Compressed
floor(log10(prop("Num"))) + 1

// Expanded
floor(
    log10(
        prop("Num")
    )
) + 1

© Thomas Frank