Difference between revisions of "NXSL:ord"
Jump to navigation
Jump to search
Tomas Kirnak (talk | contribs) (Created page with "Convert characters into their ASCII or Unicode values") |
Tomas Kirnak (talk | contribs) |
||
Line 1: | Line 1: | ||
Convert | __NOTOC__ | ||
Convert a character into it's ASCII/Unicode value. | |||
Only processes one character | |||
== Syntax == | |||
ord(''character''); | |||
== Parameters == | |||
{| class="wikitable" | |||
|- | |||
| ''character'' || A character to convert. | |||
|} | |||
== Return Value == | |||
An ASCII/Unicode value | |||
== Examples == | |||
ord(a) -> 97 | |||
ord(abc) -> 97 |
Revision as of 15:13, 22 October 2014
Convert a character into it's ASCII/Unicode value. Only processes one character
Syntax
ord(character);
Parameters
character | A character to convert. |
Return Value
An ASCII/Unicode value
Examples
ord(a) -> 97 ord(abc) -> 97