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?
>

Reply via email to