Also, the ``math.floating-point`` vocabulary provides a way to turn
doubles into ratios:
IN: scratchpad 3.14159 double>ratio .
3+159416167809847/1125899906842624
On Fri, Jul 29, 2016 at 7:11 AM, John Benediktsson <[email protected]> wrote:
> You could use ``1 mod``:
>
> IN: scratchpad 123.45038945034895 1 mod .
> 0.4503894503489505
>
> IN: scratchpad -123.45038945034895 1 mod .
> -0.4503894503489505
>
>
>
> On Fri, Jul 29, 2016 at 6:41 AM, Alexander Ilin <[email protected]> wrote:
>
>> Hello!
>>
>> I can't find the function that would return the fractional part of a
>> float in our standard library.
>> I need something to this effect:
>> http://www.freepascal.org/docs-html/rtl/system/frac.html
>>
>> A little help, please?
>>
>> ---=====---
>> Александр
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Factor-talk mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
>
>
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk