From 287b959ffb9f4458bb46a2448eb7d7840a04c8ff Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Tue, 7 Dec 2021 18:16:04 +0100 Subject: [PATCH] Add 'chr' --- chr.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 chr.md diff --git a/chr.md b/chr.md new file mode 100644 index 0000000..2e1965a --- /dev/null +++ b/chr.md @@ -0,0 +1,27 @@ +# chr(num) +Ens torna el caracter amb el codi ascii `num`. + +### Paràmetres + +`num` +El codi ascii del que volem obtindre el caracter. + +### Exemple +``` +function init() + cls() + print(tostr(0),0,0) + print(tostr(8.4),0,1) + print(tostr(-65),0,2) + print(tostr(0xff),0,3) + + print(0,0,5) + print(8.4,0,6) + print(-65,0,7) + print(0xff,0,8) +end +``` +### Vore també +* [tostr(num)](tostr) +* [ascii(str, index)](ascii) +* [strlen(str)](strlen)