2 str - convert some types of values to strings
8 x null, string, real or complex number
13 Convert a value into a string.
15 If x is null, str(x) returns the string "".
17 If x is a string, str(x) returns x.
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",
28 ; print str(123), str("+"), str(4i), str("is the same as"), str(123+4i)
29 123 + 4i is the same as 3+4i
40 qprintnum(NUMBER *x, int outmode);
41 char *math_getdivertedio();
45 char *math_getdivertedio();
50 ## Copyright (C) 1999-2006 Landon Curt Noll
52 ## Calc is open software; you can redistribute it and/or modify it under
53 ## the terms of the version 2.1 of the GNU Lesser General Public License
54 ## as published by the Free Software Foundation.
56 ## Calc is distributed in the hope that it will be useful, but WITHOUT
57 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
58 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
59 ## Public License for more details.
61 ## A copy of version 2.1 of the GNU Lesser General Public License is
62 ## distributed with calc under the filename COPYING-LGPL. You should have
63 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
64 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
66 ## @(#) $Revision: 30.1 $
67 ## @(#) $Id: str,v 30.1 2007/03/16 11:10:42 chongo Exp $
68 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/str,v $
70 ## Under source code control: 1995/10/05 04:52:27
71 ## File existed as early as: 1995
73 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
74 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/