code: function intcheck(min, max) {
    //--int i;
    var i;
    i=this.intValueExact(); // [checks for non-0 decimal part]
    // Use same message as though intValueExact failed due to size
    if ((i<min)||(i>max))
     throw "intcheck(): Conversion overflow: "+i;
    return i;
    }
docs: /* <sgml> Checks a BigDecimal argument to ensure it's a true integer
  in a given range.
  <p>If OK, returns it as an int. </sgml> [currently only used by pow] --private int intcheck(int min,int max){