src/Schema/AbstractColumn.php
public function decimal(int $precision, int $scale = 0): AbstractColumn
    {
        $this->type('decimal');

        if (empty($precision)) {
            throw new SchemaException('Invalid precision value');
        }

        $this->precision = (int)$precision;
        $this->scale = (int)$scale;

        return $this;
    }
public function decimal(int $precision, int $scale = 0): AbstractColumn
    {
        $this->type('decimal');

        if (empty($precision)) {
            throw new SchemaException('Invalid precision value');
        }

        $this->precision = (int)$precision;
        $this->scale = (int)$scale;

        return $this;
    }
public function decimal ( int $ precision , int $ scale = 0 ) : AbstractColumn { $ this -> type ( 'decimal' ) ; if ( empty ( $ precision ) ) { throw new SchemaException ( 'Invalid precision value' ) ; } $ this -> precision = ( int ) $ precision ; $ this -> scale = ( int ) $ scale ; return $ this ; }
Set column type as decimal with specific precision and scale.

@param int $precision
@param int $scale
@return self|$this

@throws SchemaException
Set column type as decimal with specific precision and scale .