A simple if condition problem.
hi all,
i’m working on visual studio 2010 c#
i’ve got following code:
const int intmax = int32.maxvalue;
float tempval = convert.toint64(value);
if (tempval >= intmax)
{
.
.
.
.
}
my problem that: intmax = 0x 7fffffff , tempval = 1052379000 dosen’t fall on if condition.
i don’t understand why?
and how can fix it?
thanks,
shimon.
forgive writing, english isn't native language.
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment