matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10953
Posted: 08:21am 03 Oct 2022
It will give an error message if full. Try
Print factorial(100) Function factorial(n%) Local a%(1500) Print n%,Hex$(MM.Info(stack)),MM.Info(heap) If n%=1 Then factorial=1 Else factorial=factorial(n%-1) EndIf End Function