txt: ## ord.md
  ord
  
  Combined from primary sources listed below.
  
  # [In Str](#___top "go to top of document")[§](#(Str)_routine_ord "direct link")
  
  See primary documentation
  [in context](/type/Str#routine_ord)
  for **routine ord**.
  
  ```raku
  multi        ord(Str:D  --> Int:D)
  multi method ord(Str:D: --> Int:D)
  ```
  
  Returns the codepoint number of the base characters of the first grapheme in the string.
  
  Example:
  
  ```raku
  ord("A"); # 65
  "«".ord;  # 171
  ```
  
  # [In Cool](#___top "go to top of document")[§](#(Cool)_routine_ord "direct link")
  
  See primary documentation
  [in context](/type/Cool#routine_ord)
  for **routine ord**.
  
  ```raku
  sub ord(Str(Cool))
  method ord()
  ```
  
  Coerces the invocant (or in sub form, its argument) to [`Str`](/type/Str), and returns the [Unicode code point](https://en.wikipedia.org/wiki/Code_point) number of the first code point.
  
  ```raku
  say 'a'.ord;            # OUTPUT: «97␤»
  ```
  
  The inverse operation is [chr](/routine/chr).
  
  Mnemonic: returns an ordinal number
  