Asked • 03/13/19

How to convert floats to human-readable fractions?

Let's say we have 0.33, we need to output "1/3". If we have "0.4", we need to output "2/5".The idea is to make it human-readable to make the user understand "x parts out of y" as a better way of understanding data. I was wondering if there was a simple way to do this?

1 Expert Answer

By:

Patrick B. answered • 03/13/19

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.