Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~272 People Reached
Favorite Forums
Favorite Tags
c x 5
Member Avatar for idr1978

Can anyone help? Instead of outputting the decimal 1.75, C outputs 7/4 as 1.0000. I very much need to obtain the exact decimal product of integer ratios to 2 decimal places and then compare it to another decimal number. For example, if (7/4 > 1.25) printf("Yes\n"); else printf("No\n"); --> So …

Member Avatar for idr1978
0
142
Member Avatar for idr1978

Quick question: I have a 2-D array called Training[693][19] of characters 0, 1 or 2 (yes characters, not integers). I'm trying to run an IF statement similar to this: if (strcmp(Training[0][0], "1")==0) { printf ("Successful case \n "); } BUT, apparently the IF statement is wrong. I'm trying to determine …

Member Avatar for idr1978
0
130