Algosim documentation: ToFraction

ToFraction

Converts a number to an approximating rational number.

Syntax

Description

Examples

ToFraction(5.72)
143/25	(=5.72)
ToFraction(π)
2549491779/811528438	(=3.14159265359)
ToFraction(5, 1, 2, 1, 1, 3)
143/25	(=5.72)

See also