If you run the following code on Windows i will be: -2147483648, and that is using .Net Framework 4.0
However if you run the following code on Mono using version 4.6.1 JIT, i will be: 2147483647.
int a = 0;
int b = 20;
int i = (int)(((double)System.Math.Abs(a - b) / (double)a) * 100);
I thought you guys would like to know this problem exists.
I cannot repro with Mono 184.108.40.206 (2017-10/a3943e28cf8) on macOS and Mono 220.127.116.11 on Ubuntu 16.04 64bits