Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > strings and nets > ascii
next | previous | forward | backward | up | index | toc

ascii -- ASCII character conversion

Description

Synopsis

  • Usage:
    ascii v
  • Inputs:
    • v, containing small integers
  • Outputs:
    • the string whose characters have the ASCII codes listed in v

Synopsis

  • Usage:
    ascii s
  • Inputs:
    • s
  • Outputs:
    • the list of (small integer) ASCII codes of the characters of s
i1 : ascii "abcdef"

o1 = {97, 98, 99, 100, 101, 102}

o1 : List
i2 : ascii oo

o2 = abcdef
i3 : first ascii "A"

o3 = 65

Ways to use ascii :

For the programmer

The object ascii is a compiled function.