Is there a way to provide a suggestion with the error? It currently says this,
*julia> **factorial(21)* *ERROR: OverflowError()* * in factorial_lookup at combinatorics.jl:27* * in factorial at combinatorics.jl:35* Maybe it would be more useful if it said *julia> **factorial(21)* *ERROR: OverflowError("perhaps you want factorial(big(21)) instead?")* * in factorial_lookup at combinatorics.jl:27* * in factorial at combinatorics.jl:35* On Wednesday, January 14, 2015 at 11:37:17 AM UTC-7, Viral Shah wrote: > > I am guessing, that like Matlab, octave uses doubles to represent > integers, and hence you can go a bit farther than with integers. That > should be the same as factorial(21.0) in julia. Of course, you can also use > BigInt and such, which has already been discussed here. > > -viral > > On Tuesday, January 13, 2015 at 8:40:06 AM UTC+5:30, Carlos Baptista wrote: >> >> I understand that factorial(21) is quite a large number and therefore an >> OverflowError is perfectly understandable. However, with Octave I can go up >> to factorial(170) (if I go higher I receive Inf). Is there a way to go >> beyond factorial(20) in Julia? >> >