five icon indicating copy to clipboard operation
five copied to clipboard

Please add support for seven

Open ansuz opened this issue 9 years ago • 6 comments

I really need seven.

ansuz avatar Mar 24 '16 11:03 ansuz

My current workaround until this is implemented: five() + 2

EDIT:

What was i thinking?!?! I've refactored:

five() + ((five()/five()) + (five()/five()))

Mason8r avatar Mar 24 '16 11:03 Mason8r

@ansuz there is a seven support in the lib. In my projects, when I need non-five-integers I simply do:

var notFive = 7;
five.convertTo(notFive);

But I can't really find any production case where using not-fives could be useful. Maybe try to reconsider your implementation?

michalbe avatar Mar 24 '16 15:03 michalbe

thanks for the excellent advice @Mason8r and @michalbe! I may end up using both solutions as they each seem to have distinct advantages.

ansuz avatar Mar 24 '16 15:03 ansuz

That's an interesting idea. If we use Lambda calculus, we actually don't need real numbers at all.

randoms avatar Mar 26 '16 02:03 randoms

Have you tried doing it with 6?

danpker avatar Jul 20 '17 13:07 danpker

@danpker I believe my solution above will work with most integers.

michalbe avatar Jul 20 '17 13:07 michalbe