Float function creates an column where the datatype is double
So I'm creating a table in in my database for charts that I want to display.
When I run this migration (see code below) and look in the database (see picture) it says in the datatype column that it's an double.
I know how to fix the problem but it's in:
"/vendor/laravel/framework/src/Illuminate/Database/Schema"
So my question is if everyone has the same problem.
My code in the migration:
Code in blueprint that needs to be changed: (in my case)
To this:

2 Replies
They both represent floating point numbers. A FLOAT is for single-precision, while a DOUBLE is for double-precision numbers.
if you want to change the precision, pass it as a second param
note that this is laravel related, for more
https://laravel.com/docs/master/migrations#column-method-float
Good to know, thanks