Cheddar Documentation
Search
⌃
K
Cheddar Documentation
Search
⌃
K
Introduction
Syntax
Literals
Mathematics
Variables
Functions
Default Operators
Control Flow
Standard Library
String
Bytes
Count
Length
Match
Slice
Tail
Chars
Head
Lines
Ord
Split
Test
Chunk
Index
Lower
Reverse
Substitute
Upper
Developing
Powered By
GitBook
Ord
type
returns
Method
number
Arguments
name
type
description
index
int, default: 0
The index within the string in which to determine the character code of
Explanation
Returns the character code of the character at the given index
Examples
"a"
.
ord
()
==
97
"abc"
.
ord
()
==
97
"abc"
.
ord
(
1
)
==
98
Previous
Lines
Next
Split
Last modified
3yr ago