Log

From the Oblivion ConstructionSet Wiki
Revision as of 06:26, 2 March 2008 by imported>DragoonWraith (note on Nth Root)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A command for Oblivion Script Extender

Syntax:

log [float]

Returns the natural logarithm of a number.

Example[edit | edit source]

set n to log n

Nth Root[edit | edit source]

OBSE does not provide an Nth Root function, however, the following code can get the Nth Root, using Exp and Log.

set NthRootOfX to ( log x )/N
set NthRootOfX to ( exp NthRootOfX )

See Also[edit | edit source]