Convert a fraction to whole number [closed]
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
Lets say that there are a few fractions:
x = 0.584592145015
y = 0.443242244323
How do one convert these fractions to whole
numbers? That is:
xw = 584592145015
yw = 443242244323
The point is that the fraction can be upto any amount of precision. Is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?
Thanks.
decimal-expansion
closed as unclear what you're asking by Mike Haskel, Lord Shark the Unknown, Taroccoesbrocco, MatheinBoulomenos, Mostafa Ayaz Jul 30 at 18:44
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |Â
up vote
-1
down vote
favorite
Lets say that there are a few fractions:
x = 0.584592145015
y = 0.443242244323
How do one convert these fractions to whole
numbers? That is:
xw = 584592145015
yw = 443242244323
The point is that the fraction can be upto any amount of precision. Is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?
Thanks.
decimal-expansion
closed as unclear what you're asking by Mike Haskel, Lord Shark the Unknown, Taroccoesbrocco, MatheinBoulomenos, Mostafa Ayaz Jul 30 at 18:44
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
who and why down voted?
â khan
Jul 30 at 1:42
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
Lets say that there are a few fractions:
x = 0.584592145015
y = 0.443242244323
How do one convert these fractions to whole
numbers? That is:
xw = 584592145015
yw = 443242244323
The point is that the fraction can be upto any amount of precision. Is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?
Thanks.
decimal-expansion
Lets say that there are a few fractions:
x = 0.584592145015
y = 0.443242244323
How do one convert these fractions to whole
numbers? That is:
xw = 584592145015
yw = 443242244323
The point is that the fraction can be upto any amount of precision. Is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?
Thanks.
decimal-expansion
edited Jul 30 at 1:27
Cave Johnson
3,5771326
3,5771326
asked Jul 30 at 1:12
khan
995
995
closed as unclear what you're asking by Mike Haskel, Lord Shark the Unknown, Taroccoesbrocco, MatheinBoulomenos, Mostafa Ayaz Jul 30 at 18:44
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by Mike Haskel, Lord Shark the Unknown, Taroccoesbrocco, MatheinBoulomenos, Mostafa Ayaz Jul 30 at 18:44
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, itâÂÂs hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
who and why down voted?
â khan
Jul 30 at 1:42
add a comment |Â
who and why down voted?
â khan
Jul 30 at 1:42
who and why down voted?
â khan
Jul 30 at 1:42
who and why down voted?
â khan
Jul 30 at 1:42
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
You can think about it this way: Each power of $10$ "moves" the decimal point one place to the right. For example:
$$0.00002times10^5=2$$
For the two numbers in your problem, you can multiply them by $10^12$ to get whole numbers, since there are $12$ digits past the decimal point in each number.
So we can generalize that multiplying with 10^n (where n = number of digits after 0) will give the whole number?
â khan
Jul 30 at 1:18
Right. You should try a few examples on your calculator to see that it works.
â é«Âç°èª
Jul 30 at 1:19
Thanks so much for the help. Appreciated.
â khan
Jul 30 at 1:20
1
ItâÂÂs even simpler than that. Given a number $x$, and an integer $d$, you can form the approximation of $x$ as a fraction $$xapproxfraclfloor dx rfloord$$ where $lfloorcdotrfloor$ just rounds down to an integer.
â MPW
Jul 30 at 1:40
@MPW I was answering "is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?"
â é«Âç°èª
Jul 30 at 1:43
 |Â
show 1 more comment
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
You can think about it this way: Each power of $10$ "moves" the decimal point one place to the right. For example:
$$0.00002times10^5=2$$
For the two numbers in your problem, you can multiply them by $10^12$ to get whole numbers, since there are $12$ digits past the decimal point in each number.
So we can generalize that multiplying with 10^n (where n = number of digits after 0) will give the whole number?
â khan
Jul 30 at 1:18
Right. You should try a few examples on your calculator to see that it works.
â é«Âç°èª
Jul 30 at 1:19
Thanks so much for the help. Appreciated.
â khan
Jul 30 at 1:20
1
ItâÂÂs even simpler than that. Given a number $x$, and an integer $d$, you can form the approximation of $x$ as a fraction $$xapproxfraclfloor dx rfloord$$ where $lfloorcdotrfloor$ just rounds down to an integer.
â MPW
Jul 30 at 1:40
@MPW I was answering "is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?"
â é«Âç°èª
Jul 30 at 1:43
 |Â
show 1 more comment
up vote
2
down vote
You can think about it this way: Each power of $10$ "moves" the decimal point one place to the right. For example:
$$0.00002times10^5=2$$
For the two numbers in your problem, you can multiply them by $10^12$ to get whole numbers, since there are $12$ digits past the decimal point in each number.
So we can generalize that multiplying with 10^n (where n = number of digits after 0) will give the whole number?
â khan
Jul 30 at 1:18
Right. You should try a few examples on your calculator to see that it works.
â é«Âç°èª
Jul 30 at 1:19
Thanks so much for the help. Appreciated.
â khan
Jul 30 at 1:20
1
ItâÂÂs even simpler than that. Given a number $x$, and an integer $d$, you can form the approximation of $x$ as a fraction $$xapproxfraclfloor dx rfloord$$ where $lfloorcdotrfloor$ just rounds down to an integer.
â MPW
Jul 30 at 1:40
@MPW I was answering "is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?"
â é«Âç°èª
Jul 30 at 1:43
 |Â
show 1 more comment
up vote
2
down vote
up vote
2
down vote
You can think about it this way: Each power of $10$ "moves" the decimal point one place to the right. For example:
$$0.00002times10^5=2$$
For the two numbers in your problem, you can multiply them by $10^12$ to get whole numbers, since there are $12$ digits past the decimal point in each number.
You can think about it this way: Each power of $10$ "moves" the decimal point one place to the right. For example:
$$0.00002times10^5=2$$
For the two numbers in your problem, you can multiply them by $10^12$ to get whole numbers, since there are $12$ digits past the decimal point in each number.
answered Jul 30 at 1:15
é«Âç°èª
1,116318
1,116318
So we can generalize that multiplying with 10^n (where n = number of digits after 0) will give the whole number?
â khan
Jul 30 at 1:18
Right. You should try a few examples on your calculator to see that it works.
â é«Âç°èª
Jul 30 at 1:19
Thanks so much for the help. Appreciated.
â khan
Jul 30 at 1:20
1
ItâÂÂs even simpler than that. Given a number $x$, and an integer $d$, you can form the approximation of $x$ as a fraction $$xapproxfraclfloor dx rfloord$$ where $lfloorcdotrfloor$ just rounds down to an integer.
â MPW
Jul 30 at 1:40
@MPW I was answering "is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?"
â é«Âç°èª
Jul 30 at 1:43
 |Â
show 1 more comment
So we can generalize that multiplying with 10^n (where n = number of digits after 0) will give the whole number?
â khan
Jul 30 at 1:18
Right. You should try a few examples on your calculator to see that it works.
â é«Âç°èª
Jul 30 at 1:19
Thanks so much for the help. Appreciated.
â khan
Jul 30 at 1:20
1
ItâÂÂs even simpler than that. Given a number $x$, and an integer $d$, you can form the approximation of $x$ as a fraction $$xapproxfraclfloor dx rfloord$$ where $lfloorcdotrfloor$ just rounds down to an integer.
â MPW
Jul 30 at 1:40
@MPW I was answering "is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?"
â é«Âç°èª
Jul 30 at 1:43
So we can generalize that multiplying with 10^n (where n = number of digits after 0) will give the whole number?
â khan
Jul 30 at 1:18
So we can generalize that multiplying with 10^n (where n = number of digits after 0) will give the whole number?
â khan
Jul 30 at 1:18
Right. You should try a few examples on your calculator to see that it works.
â é«Âç°èª
Jul 30 at 1:19
Right. You should try a few examples on your calculator to see that it works.
â é«Âç°èª
Jul 30 at 1:19
Thanks so much for the help. Appreciated.
â khan
Jul 30 at 1:20
Thanks so much for the help. Appreciated.
â khan
Jul 30 at 1:20
1
1
ItâÂÂs even simpler than that. Given a number $x$, and an integer $d$, you can form the approximation of $x$ as a fraction $$xapproxfraclfloor dx rfloord$$ where $lfloorcdotrfloor$ just rounds down to an integer.
â MPW
Jul 30 at 1:40
ItâÂÂs even simpler than that. Given a number $x$, and an integer $d$, you can form the approximation of $x$ as a fraction $$xapproxfraclfloor dx rfloord$$ where $lfloorcdotrfloor$ just rounds down to an integer.
â MPW
Jul 30 at 1:40
@MPW I was answering "is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?"
â é«Âç°èª
Jul 30 at 1:43
@MPW I was answering "is there a generalized way to determine what power of 10 to multiply with the fraction to convert it to a whole number?"
â é«Âç°èª
Jul 30 at 1:43
 |Â
show 1 more comment
who and why down voted?
â khan
Jul 30 at 1:42