FloatToString
From NWNWiki
Contents |
[edit] FloatToString(float, int, int)
Converts a float into a string.
string FloatToString(
float fFloat,
int nWidth = 18,
int nDecimals = 9
);
[edit] Parameters
- int nWidth
- The number of numeric positions to the left of the decimal. If zero, the whole part left of the decimal is displayed without trailing spaces. (Default: 18)
- int nDecimals
- The number of numeric positions to the right of the decimal (precision). (Default: 9)
[edit] Description
Returns the value of fFloat converted to a string within the confines defined by nWidth and nDecimals.
Returns an empty string ("") on error.
[edit] Version
1.22
[edit] See Also
Function: FloatToInt | LocationToString | StringToFloat | StringToInt | VectorToString
Converted from NWNLexicon
author: Charles Feduke, editor: Jochem van 't Hull
