| 1 | = FloatToStr = |
| 2 | Convert floating point number to string |
| 3 | |
| 4 | {{{ |
| 5 | string FloatToStr(float val, int precision); |
| 6 | }}} |
| 7 | |
| 8 | == Parameters == |
| 9 | |
| 10 | * val - floating point value |
| 11 | * precision - optional - how many decimal places to show |
| 12 | |
| 13 | == Return Value == |
| 14 | |
| 15 | * Returns the string representation of the number |
| 16 | |
| 17 | == Remarks == |
| 18 | |
| 19 | |
| 20 | == Example == |
| 21 | |
| 22 | {{{ |
| 23 | float val = 12.3; |
| 24 | string s = FloatToStr(val); |
| 25 | DisplayText(0, 0, s); |
| 26 | }}} |
| 27 | |
| 28 | |
| 29 | == See Also == |
| 30 | |
| 31 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/String/StrToFloat StrToFloat] |
| 32 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/String/StrFmt StrFmt] |