Difference between revisions of "FloatToString"
From Dragon Age Toolset Wiki
(Generated by Sunjammer's Dragon Age Script Paser) |
BryanDerksen (Talk | contribs) (looks okay, removing tag) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{dafunction | {{dafunction | ||
|name=FloatToString | |name=FloatToString | ||
Line 6: | Line 5: | ||
|param1name=fFloat | |param1name=fFloat | ||
|param1desc=The float value to convert | |param1desc=The float value to convert | ||
+ | |param1default= | ||
|param2type=int | |param2type=int | ||
|param2name=nWidth | |param2name=nWidth | ||
|param2desc=The size of the value before the decimal, must be a value between 0 and 18 inclusive | |param2desc=The size of the value before the decimal, must be a value between 0 and 18 inclusive | ||
+ | |param2default=18 | ||
|param3type=int | |param3type=int | ||
|param3name=nDecimals | |param3name=nDecimals | ||
|param3desc=The number of decimal places, must be a value between 0 and 9 inclusive | |param3desc=The number of decimal places, must be a value between 0 and 9 inclusive | ||
+ | |param3default=9 | ||
|returntype=string | |returntype=string | ||
|returndesc=Returns a string representation of the specified floating point number. | |returndesc=Returns a string representation of the specified floating point number. |
Latest revision as of 22:16, 2 March 2010
Converts a floating point number to a string.
- 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.