View Single Post
Old 09-06-2006, 02:05 AM   #1 (permalink)
netridge
Webmaster Widget Admin
 
netridge's Avatar
 
Join Date: Jul 2006
Location: California
Posts: 551
Default Some C Help please!!

Ok i have this problem
double answer= 4-2.7*(5 % (int)5.2);

My questions is what role does % play, and also what role does int play in the brackets.

I get confused, since this is seen as a double. But then you have an int

I know the answer is 4.000000

but how and most importantly why?

Any help greatly appreciated.
__________________
Webmaster Widget | Revenue Sharing Forum
netridge is offline  
Sponsored Links