I wrote some dart code follow js code and there is a problem , hope someone can help me/
js code:
var max = 0x80000000;
var data = -2000;
var mod = data % max;
the mod value is -2000
Dart code :
var max = 0x80000000;
var data = -2000;
var mod = data % max;
the mod value is 2147481648
Why?