News for hackers. Stuff that matters.
Re:Many elementary teachers don’t understand math, and it ma... by CraneWorm on Saturday November 30, 2019 @05:43AM (#21669430)
Oh, right! Easy!

Try it with 1/7?

Re:Many elementary teachers don’t understand math, and it ma... by fyp on Saturday November 30, 2019 @05:59AM (#21669467)
School usually start with remainders instead of trying to teach repeating decimals at the same time. So here the answer is just 0 remain 1.

The same process still works if you want to calculate the decimals though. Just pretend you're doing (1000000/7) * (1/1000000) or however many digits you want.

Re:Many elementary teachers don’t understand math, and it ma... by theli0nheart on Saturday November 30, 2019 @09:31AM (#21670090)
Shift the decimal point of the operand right by N places (where N is how many decimal places of precision you want), do the long division, then shift the decimal point of the result left by N places, and you have your answer.