FANDOM


====

R2SW====

//Convert Real To Formatted StringEdit

native R2SW takes real r, integer width, integer precision returns string 

// This function converts a floating-point number to a formatted string. Width parameter is the number of characters to the left of point (integer       // part), the parameter is the number of precision 

//characters to the right of the point (the fractional part). Example:                                                          Edit

set STR = R2SW (123.234, 1, 3) / / The result is "123,234" Edit

set STR = R2SW (123.234, 1, 1) / / The result is "123.2" Edit

set STR = R2SW (123.234, 4, 2) / / The result is "123.23"                                                     Edit