ToFrac$

 

Purpose:

Converts an number to a fraction.

Parameter:

Number

Boolean           optional: Create mixed fraction. Default: True.

Number           optional: Maximum denominator (integer part) and maximum deviation (fractional part). Default: 10000.00001.

Number           optional: Defines to what extent Unicode characters can be used fort he output. (0/1/2/3). Default: 2.

Return value:

String

Example:

ToFrac$(7.25,True,0.00001   )        Result: 7 1/4