Skip to content

Why is float's default precision only 2 decimal places? #3151

Closed
@tremby

Description

@tremby

At https://github.com/laravel/framework/blob/master/src/Illuminate/Database/Schema/Blueprint.php#L505 the default precision of float is set to 8 digits, 2 max after the decimal place. This is absolutely bizarre. That's the kind of thing decimal is used for. When I want a float I want a huge amount of precision (or double for even more of course), and I see no reason for the framework to presume 2 decimal places is enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions