Seiki Batch Script > Mathematical Functions

@abs

Returns the absolute value of a signed floating point number

Class: Mathematical

Parameters: @d – A floating point number

Syntax: @returnValue=@abs(@d)

Returns: A positive floating point number

Remarks: None

Example:

//Example for the mathematical @abs method

@d=-23.456 //Set value

@result=@abs(@d) //Calculate result (= 23.456)

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