failed attempts to intercept copy command when the cursor is in the empty text field...
[LeanCalc.git] / help / str
1 NAME
2     str - convert some types of values to strings
3
4 SYNOPSIS
5     str(x)
6
7 TYPES
8     x           null, string, real or complex number
9
10     return      string
11
12 DESCRIPTION
13     Convert a value into a string.
14
15     If x is null, str(x) returns the string "".
16
17     If x is a string, str(x) returns x.
18
19     For real or complex x, str(x) returns the string representing x
20     in the current printing mode; configuration parameters affecting
21     this are "mode", "mode2", "display", "outround", "tilde", "leadzero",
22
23 EXAMPLE
24     > str("")
25             ""
26     > str(null())
27             ""
28     > print str(123), str("+"), str(4i), str("is the same as"), str(123+4i)
29     123 + 4i is the same as 3+4i
30
31     > base2(16),
32     > print str(23209)
33     23209 /* 0x5aa9 */
34
35 LIMITS
36     none
37
38 LINK LIBRARY
39     void math_divertio();
40     qprintnum(NUMBER *x, int outmode);
41     char *math_getdivertedio();
42
43     math_divertio();
44     comprint(COMPLEX *x);
45     char *math_getdivertedio();
46
47 SEE ALSO
48     base, base2, config
49