Add 'chr'
27
chr.md
Normal file
27
chr.md
Normal file
@@ -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)
|
||||||
Reference in New Issue
Block a user