std-tostr | ![]() |
STD-TOSTR is the general (and slower) way to convert any expression to the string as it would be printed with PRINC. Dotted pairs must be supported. The output of real numbers is not exactly specified. It would be useful to print them in maximal accuracy but AutoLISP functions print them often with the current settings of DIMZIN, LUPREC, UNITS and so on.
This function is quite similar to STD-PRINC-TO-STRING, but not exactly the same. STD-TOSTR does some extra conversion to print the result in a even more user-friendly format.
It applies known rules for the current locale settings on numbers such as inserting the thousands seperator.
This function is preferred in user-interactive dialogs or prompts.
(std-tostr 'my-var) => "MY-VAR" (std-tostr '(0 1 2)) => "(0 1 2)" (std-tostr '(10 . a)) => "(10 . A)"
expr: any valid lisp expression.
A string. Symbol names are always uppercase.
If not in Vital Lisp or Visual Lisp temporary files may be created in the %TEMP% dir. They are deleted by initialization functions and std-filename-mktemp automatically if the number exceeds a certain filesystem dependent treshold.
(std-require 'STDLISP)
Defined in STDLISP