Seiki Batch Script > Mathematical Functions

@sqrt

Returns the square root of a specified floating point number

Class: Mathematical

Parameters: @d – A floating point number

Syntax: @returnValue=@sqrt(@d)

Returns: The square root of @d

Remarks: Parameter @d must be greater than zero

Example:

//Example for the mathematical @sqrt method

@d=56.789 //Set value

@result=@sqrt(@d) //Calculate result (= 7.53585)

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