humanize
humanize copied to clipboard
Fraction: Detect repeating trailing decimal places
Currently fractions are humanized without looking at repeating patterns in the decimal places.
Therefore 0.3333
becomes 333/1000
instead of 1/3
.
Task: Implement ability to detect repeating trailing decimal places for more correct representation of the fraction.
Reference: https://en.wikipedia.org/wiki/Repeating_decimal