S
Sivas
Hi,
Can anyone tell me why this does not work:
---------------------------------------------
float b = 2.51F;
switch(b)
{
case 2.51F:
Console.WriteLine("A");
break;
default:
break;
}
Error: A value of an integral type expected
---------------------------------------------
It fails on the switch statement and does not go any further.
Any help is much appriciated.
Thanks,
Sivas
Can anyone tell me why this does not work:
---------------------------------------------
float b = 2.51F;
switch(b)
{
case 2.51F:
Console.WriteLine("A");
break;
default:
break;
}
Error: A value of an integral type expected
---------------------------------------------
It fails on the switch statement and does not go any further.
Any help is much appriciated.
Thanks,
Sivas