Skip to main content

Operator: LN

The IEC operator yields the natural logarithm of a number.

Permitted data types for input variables: any numeric basic data type

Permitted data types for output variables: REAL and LREAL

Example 138. Examples

Result in q: 3.80666

ST

q := LN(45);

FBD

_cds_img_ln.png