log

This block is part of the math group and was last modified in core v13.0.7.

log v13.0.7

Returns the base logarithm of a number

In pins 1
  • number_0 required
    number
Out pins 1
  • Number
    number

Outputs the natural logarithm (base e) of number_0. Numeric strings and booleans coerce; unwired, nil, non-numeric, zero, and negative inputs all output nil. Example: number_0="10" -> 2.302585092994046.

A typical wiring for Log: the number out pin feeds cast to value.

Studio canvas example for the Log block: typical wiring for Log.

Version history

Introduced in v13.0.7.


Back to math Return to the main group to view all sub-groups Back to number: static methods Return to the group to view all blocks within this group