Top
Back: A_Z_L
Forward: absValue
FastBack:
FastForward:
Up: general_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.2.3.3 ASCII

Procedure from library general.lib (see general_lib).

Usage:
ASCII([n,m]); n,m= integers (32 <= n <= m <= 126)

Return:
string of printable ASCII characters (no native language support)
ASCII(): string of all ASCII characters with its numbers,
ASCII(n): n-th ASCII character
ASCII(n,m): n-th up to m-th ASCII character (inclusive)

Example:
 
LIB "general.lib";
ASCII();"";
==>      !    "    #    $    %    &    '    (    )    *    +    ,    -    .
==> 32   33   34   35   36   37   38   39   40   41   42   43   44   45   46
==> /    0    1    2    3    4    5    6    7    8    9    :    ;    <    =
==> 47   48   49   50   51   52   53   54   55   56   57   58   59   60   61
==> >    ?    @    A    B    C    D    E    F    G    H    I    J    K    L
==> 62   63   64   65   66   67   68   69   70   71   72   73   74   75   76
==> M    N    O    P    Q    R    S    T    U    V    W    X    Y    Z    [
==> 77   78   79   80   81   82   83   84   85   86   87   88   89   90   91
==> \    ]    ^    _    `    a    b    c    d    e    f    g    h    i    j
==> 92   93   94   95   96   97   98   99  100  101  102  103  104  105  10
==> k    l    m    n    o    p    q    r    s    t    u    v    w    x    y
==> 107  108  109  110  111  112  113  114  115  116  117  118  119  120  121
==> z    {    |    }    ~
==> 122  123  124  125  126 
==> 
ASCII(42);
==> *
ASCII(32,126);
==>  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh\
   ijklmnopqrstuvwxyz{|}~


Top Back: A_Z_L Forward: absValue FastBack: FastForward: Up: general_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.4.0, 2024, generated by texi2html.