Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dffract()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfFract()
Transforms a decimal to a fraction
------------------------------------------------------------------------------
Syntax:

     dfFract(<nDec>,<nTol>) --> cFract

Parameters:

     <nDec>     decimal Value to convert
     <nTol>     Tolerance on the value to return
     DEFAULT 0,001

Returns:

     <cFract> resultant Fraction

Description:

     Permits to convert a decimal number to an equivalent fraction, with a
     given tolerance

Example:

     ? dfFract(- 1.1)   // - 11/ 10
     ? dfFract(1.1232)    // 55/ 49
     ? dfFract(541.11233)   // 541/ 1

See also:

     dfDec2Hex()

See Also: dfDec2Hex()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson