yii\db\SchemaBuilderTrait::double PHP Метод

double() публичный Метод

Creates a double column.
С версии: 2.0.6
public double ( integer $precision = null ) : ColumnSchemaBuilder
$precision integer column value precision. First parameter passed to the column type, e.g. DOUBLE(precision). This parameter will be ignored if not supported by the DBMS.
Результат ColumnSchemaBuilder the column instance which can be further customized.
    public function double($precision = null)
    {
        return $this->getDb()->getSchema()->createColumnSchemaBuilder(Schema::TYPE_DOUBLE, $precision);
    }