Difference between revisions of "To string"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '{{ #vardefine:name|to_string}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function_category=Datatype Conversions| function1={{Function| name={{#var:n…')
 
imported>Bale
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=Datatype Conversions|
 
  
 
function1={{Function|
 
function1={{Function|
Line 23: Line 22:
  
 
}}
 
}}
 +
 +
[[Category:Datatype Conversions]]

Revision as of 05:23, 22 May 2010

needs(code_samples);

Function Syntax

string to_string( any anything)

  • anything is any data type that KoLmafia uses

Returns any datatype as its string equivalent.

Special

Note that this function isn't needed for print() and string concatenation, as KoLmafia handles conversions transparently in those cases; however, this function is still useful for passing a non-string value as a string parameter, or a part thereof.