Open ansuz opened 8 years ago
My current workaround until this is implemented:
five() + 2
EDIT:
What was i thinking?!?! I've refactored:
five() + ((five()/five()) + (five()/five()))
@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?
thanks for the excellent advice @Mason8r and @michalbe! I may end up using both solutions as they each seem to have distinct advantages.
That's an interesting idea. If we use Lambda calculus, we actually don't need real numbers at all.
Have you tried doing it with 6?
@danpker I believe my solution above will work with most integers.
I really need seven.