efilnikufecin
Member
Code:
record my_rec
{
int a;
int b;
int c;
};
int a = 10;
int b = 250;
int c = a / b;
my_rec test;
test.a = 10;
test.b = 250;
test.c = test.a / test.b;
print(c);
print(test.c);
version 10.1 (maybe earlier) through 10.4 Output:
0
0.04
It appears that an integer in a record is handled as a float.
Expected output: