So, I need to save amounts that go up to 999,999,999,999.99
, and in the documentation of the Schema Builder of Laravel says that I can set up up to 15 digits and 8 decimals, but this is not working (https://laravel.com/docs/5.2/migrations#writing-migrations)
In Column Types says:
$table->double('column', 15, 8); DOUBLE equivalent with precision, 15 digits in total and 8 after the decimal point.
The line of code in my migration is the following:
$table->double('m1',12,2)->default(0)->nullable();
Any ideas? Thank you.
try use:
if your values only positive... then use:
works to me!