Seiki Batch Script > Mathematical Functions

@log10

Returns the base 10 logarithm of a specified number

Class: Mathematical

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

Syntax: @returnValue=@log10(@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

Example:

//Example for the mathematical @log10 method

@d=5.678 //Set value

@result=@log10(@d) //Calculate result (= 0.754195)

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