FloatToString

From Dragon Age Toolset Wiki
Revision as of 23:08, 31 July 2009 by BryanDerksen (Talk | contribs) (1 revision: re-import with default parameter value parameters set)

Jump to: navigation, search

This page was generated by Sunjammer's Dragon Age Script Parser.

The parser extracted and matched all the information required to the best of its ability however the parser relies on the source file, and especially a function's comments, to be correctly formatted. If the source file was not correctly formatted the information presented may be incomplete.

This page should be reviewed by a knowledgeable scripter as it may require updating. If an issue with the source file is identified it should be reported to BioWare.

Please remove the {{Generated}} tag once the page has been confirmed or corrected.

Converts a floating point number to a string.

string FloatToString(
float fFloat,
int nWidth = 18,
int nDecimals = 9
);
Parameters:
fFloat
The float value to convert
nWidth
The size of the value before the decimal, must be a value between 0 and 18 inclusive
nDecimals
The number of decimal places, must be a value between 0 and 9 inclusive
Returns:

Returns a string representation of the specified floating point number.

Source:

script.ldf

Description

Returns the float fFloat in string format. The string Will include nWidth number of digits before the decimal place and nDecimals number of digits after the decimal place.


See also

StringToFloat, FloatToInt