Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
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 22.214.171.124 (2017-10/a3943e28cf8) on macOS and Mono 126.96.36.199 on Ubuntu 16.04 64bits