NAME

strS - convert to numeric format

SYNOPSIS

#include <basic/string.h>
#include <basic/type.h>
#include <basic/generic.h>

struct string strS(type, generic)
int type;
union generic generic;

DESCRIPTION

StrS returns a string which represents the numeric value given by type, generic (see generic(inc)).  The formatting is performed by numcvt (see numcvt(io) for the description of the format).  Then a space is prepended to the string if the value is non-negative.  This means that the first character of the returned string is always reserved for the sign.  This character is - (minus) if the value is negative and blank otherwise. 

This function implements the BASIC STR$ function. 

SEE ALSO

string(inc), generic(inc), numcvt(io)
str$(func)

from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber