Logarithm

From Fancade Wiki
Revision as of 13:57, 20 May 2024 by Osmo (talk | contribs) (Updated and revisited the page)
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 ^ Exponent = Base

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