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
~340 People Reached
Favorite Forums
Favorite Tags
c++ x 3
Member Avatar for brent.lozano001

im trying to learn how to make a if/then statement that will take a number, possibly with a decimal and round it to the nearest integer. Like so.. if 3.4 is the number, then the final would be 3 not 3.4 how would i do so?

Member Avatar for ArkM
0
242
Member Avatar for brent.lozano001

I am trying to develop a code that will take a number similar to 8.23 or any number with a decimal and convert it to a whole number like 8. I would like to do this in an if/then statement but i dont know which process to call it from.

Member Avatar for dougy83
0
98