log

Stack effect: ( n -- n )

Compute the log base e of the top element of the stack.

This word is roughly equivalent to the traditional Forth word FLN. log is used to emphasize the primary stack being floating point, with a slight nod to the C function name.

NOTE: In Haiku Forth (unlike Traditional Forth), all stack cells and memory locations are floating point numbers.

Examples:

Forth Haiku Glossary