java - Strange multiplication error -
why simple this:
system.out.println("test problem: " + 194*194*194*409);
output this:
test problem: -1308701240
because you've overflowed integer. see limits on numbers handled integers in java documentation.
Comments
Post a Comment