txt: ## fatrat.md
  FatRat
  
  Combined from primary sources listed below.
  
  # [In Num](#___top "go to top of document")[§](#(Num)_method_FatRat "direct link")
  
  See primary documentation
  [in context](/type/Num#method_FatRat)
  for **method FatRat**.
  
  ```raku
  method FatRat(Num:D: Real $epsilon = 1e-6)
  ```
  
  Converts the number to a [`FatRat`](/type/FatRat) with the precision `$epsilon`. If invocant is an `Inf`, `-Inf`, or `NaN`, converts them to a [`FatRat`](/type/FatRat) with `0` [denominator](/routine/denominator) and `1`, `-1`, or `0` [numerator](/routine/numerator), respectively.
  
  # [In Cool](#___top "go to top of document")[§](#(Cool)_method_FatRat "direct link")
  
  See primary documentation
  [in context](/type/Cool#method_FatRat)
  for **method FatRat**.
  
  ```raku
  multi method FatRat()
  ```
  
  Coerces the invocant to a [`Numeric`](/type/Numeric) and calls its [`.FatRat`](/routine/FatRat) method. [Fails](/routine/fail) if the coercion to a [`Numeric`](/type/Numeric) cannot be done.
  
  ```raku
  say 1+0i.FatRat;          # OUTPUT: «1␤»
  say 2e1.FatRat;           # OUTPUT: «20␤»
  say 1.3.FatRat;           # OUTPUT: «1.3␤»
  say (-4/3).FatRat;        # OUTPUT: «-1.333333␤»
  say "foo".FatRat.^name;   # OUTPUT: «Failure␤»
  ```
  