Convert a fraction to whole number [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|cite|improve this 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














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.







share|cite|improve this 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












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.







share|cite|improve this question













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.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








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
















  • 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










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.






share|cite|improve this answer





















  • 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


















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.






share|cite|improve this answer





















  • 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















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.






share|cite|improve this answer





















  • 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













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.






share|cite|improve this answer













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.







share|cite|improve this answer













share|cite|improve this answer



share|cite|improve this answer











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

















  • 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



Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?