Skip to content

Introduce the decimal scalar type #10967

@speller

Description

@speller

Description

Many applications work with money, weights, dimensions. Many applications store data in DECIMAL database fields. It would be nice if this data type will be supported by the PHP core without workarounds like bcmath. It is unintuitive to use string typehints for decimal numbers instead of just "decimal". In PHP8, passing float values to bcmath may lead to issues (sic!). It is unintuitive to use functions for math operations instead of just + - / * etc. With the native decimal support, the bcmath extension can be retired.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions