Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
0 Endorsements
Ranked #107.55K
~209 People Reached
Favorite Forums
Favorite Tags
c x 1

1 Posted Topic

Member Avatar for vbcielle

how will i round off the return value to decimal place with tis function? unsigned int CalculatePercentage(int TotalComponent, int PartialComponent){ return int((PartialComponent/TotalComponent)100); } use floor commnad which was defined in the math.h library file syntax:int x=1.5; printf("%d",floor(x)); o/p will be 2 instead of 1.5

Member Avatar for WaltP
0
209

The End.