public function asInteger($value, $options = [], $textOptions = [])
    {
        if ($value === null) {
            return $this->nullDisplay;
        }
        $value = $this->normalizeNumericValue($value);
        if ($this->_intlLoaded) {
            $f = $this->createNumberFormatter(NumberFormatter::DECIMAL, null, $options, $textOptions);
            $f->setAttribute(NumberFormatter::FRACTION_DIGITS, 0);
            if (($result = $f->format($value, NumberFormatter::TYPE_INT64)) === false) {
                throw new InvalidParamException('Formatting integer value failed: ' . $f->getErrorCode() . ' ' . $f->getErrorMessage());
            }
            return $result;
        } else {
            return number_format((int) $value, 0, $this->decimalSeparator, $this->thousandSeparator);
        }
    }
public function asInteger($value, $options = [], $textOptions = [])
    {
        if ($value === null) {
            return $this->nullDisplay;
        }
        $value = $this->normalizeNumericValue($value);
        if ($this->_intlLoaded) {
            $f = $this->createNumberFormatter(NumberFormatter::DECIMAL, null, $options, $textOptions);
            $f->setAttribute(NumberFormatter::FRACTION_DIGITS, 0);
            if (($result = $f->format($value, NumberFormatter::TYPE_INT64)) === false) {
                throw new InvalidParamException('Formatting integer value failed: ' . $f->getErrorCode() . ' ' . $f->getErrorMessage());
            }
            return $result;
        } else {
            return number_format((int) $value, 0, $this->decimalSeparator, $this->thousandSeparator);
        }
    }
public function asInteger ( $ value , $ options = [ ] , $ textOptions = [ ] ) { if ( $ value === null ) { return $ this -> nullDisplay ; } $ value = $ this -> normalizeNumericValue ( $ value ) ; if ( $ this -> _intlLoaded ) { $ f = $ this -> createNumberFormatter ( NumberFormatter :: DECIMAL , null , $ options , $ textOptions ) ; $ f -> setAttribute ( NumberFormatter :: FRACTION_DIGITS , 0 ) ; if ( ( $ result = $ f -> format ( $ value , NumberFormatter :: TYPE_INT64 ) ) === false ) { throw new InvalidParamException ( 'Formatting integer value failed: ' . $ f -> getErrorCode ( ) . ' ' . $ f -> getErrorMessage ( ) ) ; } return $ result ; } else { return number_format ( ( int ) $ value , 0 , $ this -> decimalSeparator , $ this -> thousandSeparator ) ; } }
Formats the value as an integer number by removing any decimal digits without rounding.

@param mixed $value the value to be formatted.
@param array $options optional configuration for the number formatter. This parameter will be merged with [[numberFormatterOptions]].
@param array $textOptions optional configuration for the number formatter. This parameter will be merged with [[numberFormatterTextOptions]].
@return string the formatted result.
@throws InvalidParamException if the input value is not numeric or the formatting failed.
Formats the value as an integer number by removing any decimal digits without rounding .