Skip to content

Caveat for converting float to int #13

Description

@elektito

When converting a float value to an int value, in case of overflow, we get max negative int. For example in:

a% = 40000.1

a% would get -32768. The following would cause an overflow error however:

a% = 40000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions