ZVON > References > Haskell reference
| Indexes | Syntax | Prelude | Ratio | Complex | Numeric | Ix | Array | List | Maybe | >> Char << | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Char
Function: ord
Type: Char -> Int
Description: The ord and chr functions are fromEnum and toEnum restricted to the type Char.
Related:

Example 1

Input: ord 'a'

Output: 97

Example 2

Input: ord '\n'

Output: 10

Example 3

Input: ord '\NUL'

Output: 0