artMakeString
artMakeString(g_anyArg) =>t_argAsString/nil
Description
Converts data of the given data type to a string. The valid data types for the g_anyArg argument include symbol, integer, float, and string. The floating point numbers are converted into strings by using the '%.16g' format specification to produce the most precise output.
Argument
Value Returned
Examples
-
With symbol data:
artMakeString( '\1\2\3 ) => "123"
-
With integer data:
artMakeString( 2 ) => "2"
-
With float/real data:
artMakeString( 2.999 ) => "2.999"
artMakeString( 1e-9 ) => "1e-9"
-
With list data:
artMakeString( '(1 a 2.0 ) ) => "(1 a 2.0 )"
-
With CDBA inst data:
inst = car( geGetSelSet() )
artMakeString( inst ) => "db:123456"
-
With other data types:
artMakeString( nil ) => "nil"
artMakeString( t ) => "t"
Return to top