//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

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.