I've a little question about numbers comparison of different types..
I tried some comparisons beetween the same number of different types.
double a = 8;
int b = 8;
string script = @"
return num_int == num_double;
----- and -----
return System.Int16.Parse("8") == System.Int32.Parse("8");
the two above scripts will return False as result.
Can i have some clarifications for this aspect?
For example, in PHP there are two different operators to differentiate this situation (== and ===) and the normal equal operator compares only values.
How is managed the comparison beetween numbers?
Thank you in advance :)