Logarithm

From Fancade Wiki
Logarithm
Logarithm.png
TypeScript block
ColliderNone
FolderMath
Ports
Inputs Number
Base
Outputs Logarithm

Outputs the logarithm of a number by a given base.

Logarithm is a number such that Base to the power of Logarithm equates to Number.

Notes

  • Logarithm is used as an inverse function for the function Power.
  • Base defaults to e if unwired.

Examples

You can compute a number's length by plugging 10 into the base, then flooring it and adding 1.

Example

Related