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 126.96.36.199 (2017-10/a3943e28cf8) on macOS and Mono 188.8.131.52 on Ubuntu 16.04 64bits