Tuesday 12 March 2019

arithmetic - Adding repeating decimals

(intimidated newbie here, please be gentle)
I got curious about adding repeating decimals while working on a "convert degrees/min/sec to degrees" problem.



To convert 5°13'11'' to degrees, I can add $$5 + \frac{13}{60}+\frac{11}{3600}$$ to get $$5+\frac{791}{3600} = 5+0.2197\overline{2}$$ just fine, but just to see what would happen I tried converting the fractions to decimals before adding, and I broke Arithmetic.



$$\frac{13}{60} = .21\overline{6}$$
$$\frac{11}{3600} = .0030\overline{5}$$

$$0.2166666+0.0030555 = .2197221$$



Now obviously this is * * almost * * right, but there must be a way to add repeating decimals so they come out right. It doesn't look like rounding helps; the last digit might be right, or wrong, depending on the repeat. Do you just agree to ignore the final digit because you know it's gonna be funky? Or is there some way to account for it arithmetically? I don't even want to think about what happens when you get into decimals that repeat differently (e.g., 3 digits vs 7 digits) until I understand this simple version.

No comments:

Post a Comment

real analysis - How to find $lim_{hrightarrow 0}frac{sin(ha)}{h}$

How to find $\lim_{h\rightarrow 0}\frac{\sin(ha)}{h}$ without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...