Log (10) or ln?

I am experiencing unexpected behavior - the native log block calculates the natural logarithm (ln) instead of the base 10 logarithm (log₁₀), which affects my calculations.

Steps to reproduce the error:

  1. Create a new project.
  2. Add this block.
  3. when Screen1.Initialize
    set Label1.Text to log(100)
  4. Actual Result: 4.60517 (which is ln(100)).
    Expected result: 2 (since log₁₀(100) = 2).

I don't have any extensions installed
Is this a known bug in recent versions? Could there be any configuration causing this?

Hi, it is always good to search the community before asking any question. Almost all questions have been asked before, like yours.

Intresting, in Chinese version, it is translated like this:
Snipaste_2025-05-25_13-24-20

How to get log10

https://groups.google.com/g/mitappinventortest/c/fN_VSPWhV-4/m/dPmJenJf6CkJ

1 Like