New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to explicitly cast float to integer #414

Closed
andrewrk opened this Issue Aug 7, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@andrewrk
Member

andrewrk commented Aug 7, 2017

export fn entry() -> i32 {
    i32(1e4)
}
/home/andy/dev/zig/build/test.zig:10:9: error: float value 10000.000000 cannot be implicitly casted to type 'i32'
    i32(1e4)
        ^

Blocking #375

@andrewrk andrewrk added the enhancement label Aug 7, 2017

@andrewrk andrewrk added this to the 0.1.0 milestone Aug 7, 2017

@andrewrk andrewrk closed this in 2234788 Aug 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment