ord and chr
Displaying 1-5 of 5 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Jesse

ord and chr have been added. ord() just ignores every character after the first in the string, returns 0 for ''. Thoughts?

Posted on 2005-06-30 19:36:13

Gayo

Thought: yay.

Posted on 2005-06-30 22:45:49

Kildorf

Er... what does ord() do, and didn't we already have a chr()?

Posted on 2005-07-01 06:08:53

Jesse

Hrm.

Yes, we did have a chr. Good point; I'll unduplicate it.

ord() returns the int representing the first character of the string. (reverse of chr())

Note to Jesse: read manual before blindly adding things.

Posted on 2005-07-01 07:38:22

Jesse

ord() has been renamed to asc()

Posted on 2005-07-02 18:24:01


Displaying 1-5 of 5 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.