login

itoa.gsf

Top / GrADS / script / itoa.gsf

Japanese / English

Name

atoi() - Convert ascii code to character.

Synopsis

ret = itoa( int )

Options and Return values

int
Ascii code to be converted.
ret
Character

Examples

(1) Generate (a), (b), ... for each panel of a figure.

  • test.gs
    rc = gsfallow('on')
    i = 1
    while( i <= 3 )
      str = itoa( i+96 )
      say '(' % str % ')'
      i = i + 1
    endwhile
    
  • console
    ga-> test
    (a)
    (b)
    (c)
    

Script source code