decimal() public method (available since version 2.0.6)
Creates a decimal column.
public yii\db\ColumnSchemaBuilder decimal ( $precision = null, $scale = null )$precision integer
Column value precision, which is usually the total number of digits. First parameter passed to the column type, e.g. DECIMAL(precision, scale). This parameter will be ignored if not supported by the DBMS. $scale integer
Column value scale, which is usually the number of digits after the decimal point. Second p