Character codes: Difference between revisions

Line 209:
<lang go>fmt.Println(string(97)) // prints "a"
fmt.Println(string(960)) // prints "π"</lang>
 
=={{header|Golfscript}}==
To convert a number to a string, we use the array to string coercion.
<lang golfscript>97[]+''+p</lang>
 
To convert a string to a number, we have a many options, of which the simplest and shortest are:
<lang golfscript>'a')\;p
'a'(\;p
'a'0=p
'a'{}/p</lang>
 
=={{header|Groovy}}==
Anonymous user