There is also willnwhite/bigratio
<http://package.elm-lang.org/packages/willnwhite/bigratio/1.2.0/BigRatio>
(also not update to 0.18 yet) that uses big integers... might be preferable
for avoiding "resolution" problems when numerators and denominators get to
big.

On Sat, Nov 26, 2016 at 12:57 PM, Nick H <falling.maso...@gmail.com> wrote:

> I have a module that implements most of the math functions from *Basics*
> for rational numbers. Happy to publish it.
>
> For interop with ints, there is
>
> int : Int -> Rational
>
> Then converting back you have the normal round/floor/ceiling as well as
> toFloat. Is that unobtrusive enough?
>
>
> On Sat, Nov 26, 2016 at 9:44 AM, John Watson <john.wat...@gmx.co.uk>
> wrote:
>
>> Nothing too complex.  I do stuff with music notation, which has the
>> concept of half note, quarter note etc.  One thing I've been toying with is
>> porting the Haskell School of Music
>> <http://haskell.cs.yale.edu/wp-content/uploads/2015/03/HSoM.pdf> /
>> Euterpea <https://github.com/Euterpea/Euterpea> to Elm. I just prefer to
>> model things with the right abstraction.
>>
>>
>> On Saturday, 26 November 2016 15:44:28 UTC, Max Goldstein wrote:
>>>
>>> What problem are you trying to solve that you can't do with Floats?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Elm Discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to elm-discuss+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to