By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 712 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

How do I convert fraction to whole number?

P: 1
I want a program that can convert fraction to whole number using C++ programming.
Sep 24 '16 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 9,197
This is a contradiction. A fraction cannot become a whole number.

What are you talking about? Do you have an example?
Sep 24 '16 #2

Expert 100+
P: 983
Are you just interested in the integer part after division?

Do you want to round?

Will you please give us a better idea of the requirements that you are trying to meet?
Sep 24 '16 #3

Post your reply

Sign in to post your reply or Sign up for a free account.