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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I think the cast from double to long is weird.
import x10.io.Console; class test { public static def main(args:Rail[String]):void { Console.OUT.print(Double.NaN as Long); } }
compile the code above and carry it out, it work weirdly.
x10c++ test.x10 ./a.out
we can get the result below
-9223372036854775808
On the other hand,
x10c test.x10 x10 test
we can get the result below, which is completely different from above
0
I supposed that I can get "NaN" put into Long as the result.
Is the result above correct?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I think the cast from double to long is weird.
compile the code above and carry it out, it work weirdly.
we can get the result below
On the other hand,
we can get the result below, which is completely different from above
I supposed that I can get "NaN" put into Long as the result.
Is the result above correct?
The text was updated successfully, but these errors were encountered: