@math:ln
The natural logarithm of a wad-scaled value, in wad (1e18) fixed point. The inverse of exp: it turns a growth factor back into the rate that produced it.
On-chain (@math:ln!): Accepts live values and carries the result’s wad scale for surrounding arithmetic.
Returns: number
Syntax
Section titled “Syntax”@math:ln(value)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
value | number | Wad-scaled value, strictly above zero |
Examples
Section titled “Examples”# TODO: add examplesSee Also
Section titled “See Also”On-chain face (@math:ln!)
Section titled “On-chain face (@math:ln!)”Only values known before execution are supported. The result is calculated ahead of time and carries a signed wad scale of 18. Live operands are rejected.