txt: ## unival.md
  unival
  
  Combined from primary sources listed below.
  
  # [In Str](#___top "go to top of document")[§](#(Str)_method_unival "direct link")
  
  See primary documentation
  [in context](/type/Str#method_unival)
  for **method unival**.
  
  ```raku
  multi method unival(Str:D: --> Numeric)
  ```
  
  Returns the numeric value that the first codepoint in the invocant represents, or `NaN` if it's not numeric.
  
  ```raku
  say '4'.unival;     # OUTPUT: «4␤»
  say '¾'.unival;     # OUTPUT: «0.75␤»
  say 'a'.unival;     # OUTPUT: «NaN␤»
  ```
  
  # [In Int](#___top "go to top of document")[§](#(Int)_routine_unival "direct link")
  
  See primary documentation
  [in context](/type/Int#routine_unival)
  for **routine unival**.
  
  ```raku
  multi        unival(Int:D  --> Numeric)
  multi method unival(Int:D: --> Numeric)
  ```
  
  Returns the number represented by the Unicode codepoint with the given integer number, or [NaN](/type/Num#NaN) if it does not represent a number.
  
  ```raku
  say ord("¾").unival;    # OUTPUT: «0.75␤»
  say 190.unival;         # OUTPUT: «0.75␤»
  say unival(65);         # OUTPUT: «NaN␤»
  ```
  