I don't know what errors you are seeing but the result of z2/z1 (a bit over 18 billion) is indeed too large for an int. The maximum value of an int is ~2 billion, 2^31 - 1 to be precise.
Proposed as answer byamitsalvi007Tuesday, June 30, 2015 12:02 PM
Marked as answer byShu 2017Wednesday, July 8, 2015 10:42 AM
I don't know what errors you are seeing but the result of z2/z1 (a bit over 18 billion) is indeed too large for an int. The maximum value of an int is ~2 billion, 2^31 - 1 to be precise.
Proposed as answer byamitsalvi007Tuesday, June 30, 2015 12:02 PM
Marked as answer byShu 2017Wednesday, July 8, 2015 10:42 AM