|
-
Feb 26th, 2003, 06:44 PM
#1
Thread Starter
Addicted Member
Double forced into an int
is this true?
int myInt;
double myDouble;
scanf("%lf", &myDouble);
myInt = myDouble
if(myInt == myDouble)
{
proceed............
would they equal if the input was say 123.00 but not equal if you input 123.01
i am pretty sure that my asumption is right but let me know if i am wrong.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|