>>How cal i find out returned answer is integer or decimal value..!!!!
>>
>>Thanks...
>
>The return type will, obviously, always be double. But maybe for what I think you are asking:
bool IsInt = ((int)ans) == ans;
but you should check that ans is not outside the integer range
I was thinking you may try using Int.TryParse
If it's not broken, fix it until it is.
My Blog