public function toInt()
  {
    if($this->string == pow(2, 63) || $this->string == pow(2, 64))
    {
      return -1;
    }

    return ($this->string > pow(2, 31)) ? floatval($this->string) : intval($this->string);
  }
public function toInt()
  {
    if($this->string == pow(2, 63) || $this->string == pow(2, 64))
    {
      return -1;
    }

    return ($this->string > pow(2, 31)) ? floatval($this->string) : intval($this->string);
  }
public function toInt ( ) { if ( $ this -> string == pow ( 2 , 63 ) || $ this -> string == pow ( 2 , 64 ) ) { return - 1 ; } return ( $ this -> string > pow ( 2 , 31 ) ) ? floatval ( $ this -> string ) : intval ( $ this -> string ) ; }
Returns the integer value of the string.

@return float
@return integer
Returns the integer value of the string .