caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Factorial function
@ 2007-01-23 18:53 Lucas Holland
  2007-01-23 18:59 ` [Caml-list] " Steve Taylor
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Lucas Holland @ 2007-01-23 18:53 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-01-23 20:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-23 18:53 Factorial function Lucas Holland
2007-01-23 18:59 ` [Caml-list] " Steve Taylor
2007-01-23 19:26 ` William D. Neumann
2007-01-23 20:12 ` Jonathan Roewen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).