08-11-2022, 11:51 PM
The trouble is to use Steve's method requires the algorithm that recognizes a terminating decimal from a repetend. I made one, but since you can have fairly small fractions result in repetends of approx. 10,000 digits before they repeat, you'd waste a lot of computer time running that analysis. It is faster to just calculate both the numerator and denominator and display the results as a decimal. That's the road I took in the code posted in this thread.
Pete
Pete
If eggs are brain food, Biden takes his scrambled.