Seiki Batch Script > Mathematical Functions

$fix

Converts an integer number to a string representing a floating point value

Class: Mathematical

Parameters:  d – An integer number

                     n – An integer that specifies the divisor

                     p – An integer that specifies the decimal places

Syntax: $returnString=$ix(d, n, p)

Returns: A string

Remarks: This method pre-dates the inclusion of floating point variables and is retained for backward compatibility only

Example:

//Example for the mathematical $fix method

d=123450 //Set power value

n=3 //Set divisor

p=2 //Set decimal places

$result=$fix(d,n,p) //Result (= 123.45)

message(“Value “ + d + “ converts to “ + $result) //Display results message