         new CheckedInt x.digits.first() * x.sign
       else
         new CheckedInt 0
-    else if x instanceof Fraction and x.den.eq(1)
+    else if x instanceof Fraction and x.denom.eq(1)
       x.num
     else
       x

  sgn__: -> @numer.sgn()
  inv__: -> Fraction.normalized @denom, @numer

  isPos__: -> @numer.isPos()
  isNeg__: -> @numer.isNeg()
  isZero__: -> @numer.isZero()

  isEven__: -> @denom.eq(1) and @numer.isEven()
  isOdd__: -> @denom.eq(1) and @numer.isOdd()

  cmp__: (x) -> @minus__(x).numer.cmp 0



  log ''
  show -> num.by 2, 3
  show -> num.by(9,10).times(num.by(5,21))
  show -> num.by(3,5).minus(num.by(7,11))
