General information
Title:
Finding decimal value
Hello Everyone,
Code is in C#.net
double a,b,ans;
a=3;
b=2;
ans=a/b;
ans will be 1.5 dcimal value
i want to check returned answer is decimal value or integer value
like if ans is 1.5 then decimal
if ans is 2 then it should return integr value
How cal i find out returned answer is integer or decimal value..!!!!
Thanks...
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only