Seiki Batch Script > Mathematical Functions

@log

Returns the natural (base e) logarithm of a specified number

Class: Mathematical

Parameters: @d – A floating point number whose logarithm is to be found

Syntax: @returnValue=@log(@d)

Returns:

      If sign of @d is positive – The natural logarithm of @d

      If sign of @d is zero – Error

      If sign of @d is negative - Error

Remarks:

      Parameter @d is specified as a Base 10 number

      @log is the inverse of @exp

Example:

//Example for the mathematical @log method

@d=5.678 //Set value

@result=@log(@d) //Calculate result (= 1.7366)

message(“Log of “ + @d + “ is “ + @result) //Display results message