Seiki Batch Script > String Functions

fformat

Defines the format when converting floating point numbers to strings

Class: String

Parameters: $format(Optional) – The format to be implemented

Syntax: fformat([$format])

Returns: Not Applicable

Remarks:

•      If no format is defined, the format is reset to the default

•      The format string MUST terminate with character ‘f’

Example:

//Example for the string fformat keyword

$fmt=”10.2f” //Set format string

@float=1234.567 //Set floating point number

fformat($fmt) //Implement format

$string=@float //Set string (= ‘1234.57’)

message(“Formatted FP number is “ + $string) //Display results message