We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Related issue #4565
println(int64(float64(7)/float64(3)+0.5))
This code become compile error. Using const is also. http://play.golang.org/p/essxyc9aKX
package main const ( a = 7 b = 3 ) func main() { println(int64(float64(a)/float64(b)+0.5)) }
But if the values are variables, it isn't. http://play.golang.org/p/lHSeHRiG2G
a := 7.0 b := 3.0 println(int64(float64(a)/float64(b)+0.5))
I'm thinking, to express the expression, it's not useful to be error.
// r should be result of divides, // (radius of the Earth) / (length of one step) r := int(float64(RADIUS_OF_EARTH) / float64(LENGTH_OF_ONE_STEP))
The text was updated successfully, but these errors were encountered:
This is basically #6923.
Sorry, something went wrong.
No branches or pull requests
Related issue #4565
This code become compile error. Using const is also.
http://play.golang.org/p/essxyc9aKX
But if the values are variables, it isn't.
http://play.golang.org/p/lHSeHRiG2G
I'm thinking, to express the expression, it's not useful to be error.
The text was updated successfully, but these errors were encountered: