Version française
Home     About     Download     Resources     Contact us    
Browse thread
Factorial function
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Lucas Holland <hollandlucas@g...>
Subject: Factorial function
Hi, why does this function:

let rec fact n =
	n * fact (n-1);;

yield an overflow error if called with n = 5?

Thanks in advance,

Lucas