Skip to content

change int(::Float64) to error on non-integral values #6211

Closed
@StefanKarpinski

Description

@StefanKarpinski

We've discussed this before and I think it's a good change. This forces people to be explicit about whether they want rounding, truncation, or whatever. The current behavior is a gotcha for people coming from C. Related to which, do we have a document somewhere for people coming from C where we can mention that int/int = float, since that is a surprise when coming from a static language?

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break codedocsThis change adds or pertains to documentationneeds decisionA decision on this change is needed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions