Error Factorial component doesn't go above integer 12

Hi,

 

Perhaps this is a bug or perhaps the factorial function doesn't go above integer 12?

When I run the following I get an error at 13.

 

I also crashed rhino adjusting the slider.

 

I'd like the factorial component to go to higher factorials/permutations just to determine easily permutations. For instance I have 30 tile colors and I wanted to see their permutations quickly, I realize I can use 30*29*28 etc but I thought I could do this using the simple definition that one can see in the pic.

 

RM

 

 

  • up

    Luis Fraguada

    Integer
    Int32

    Int32 cannot be larger than 2^31...13! is bigger than this (6,227,020,800 > 2,147,483,648) so it throws an error.

    I am guessing this is what is happening. Int64 has a range up to 9,223,372,036,854,775,807 (2^63).

    (thanks to Giulio P. for engraving that info into my head ;) )
    6