Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

Modulo broken

Open jspa2 opened this issue 3 years ago • 0 comments

Area of Cosmos - What area of Cosmos are we dealing with?

IL2CPU

Expected Behaviour - What do you think that should happen?

Modulo should work correctly

Actual Behaviour - What unexpectedly happens?

The modulo operator outputs an incorrect value.

Reproduction - How did you get this error to appear?

double x = 3;
double y = 3;
Console.WriteLine(x % y);

Outputs 3, yet should output 0.

Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?

Developer kit Cosmos - f6372f4 IL2CPU - 7b54b04 X# - fbf2111

jspa2 avatar Nov 18 '22 01:11 jspa2