LNPermalink

IEC operator: Returns the natural logarithm of a number.

⮫ “Overview”

IN can be type BYTE, WORD, DWORD, INT, DINT, REAL, SINT, USINT, UINT, UDINT.

OUT must be type REAL.

Example in ST:

‎ q:=LN(45);‎

Example in FBD:

ln