Here i have a code (just playing around)
using System ;
class program{
static void Main(string[] args)
{
float a = 4.246f;
double b = 8.492;
System.Console.WriteLine(a*2);
System.Console.WriteLine(b/a);
}
}
here expected result is 2 but it is giving a miracle result."2.0000000880453". (i knows it will require casting for desired result).
But my question is how the code is deriving this miracle result. If they are incompatible then why it is not giving an error