Skip to content

Add support for decimal floats #289

@dumblob

Description

@dumblob

Is your feature request related to a problem? Please describe.
I'm always frustrated when the compiler lies to me and instead of the number literal I see stores a different number to the memory/register and first then starts the actual computation.

Describe the solution you'd like
Either error out, that the given float literal can't be converted to a binary float due to loss of precision. Or add support for (arbitrary precision like mpdecimal?) decimal floats.

Describe alternatives you've considered
Leave it as it is - which is very painful and significantly contributes to the oddity of floats in general.

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions