|
-
Sep 14th, 2001, 08:59 AM
#1
Thread Starter
New Member
To many characters!!!!
I am writing a program to calculate the factorial of 365 (365!) and the number generated is to long to print while keeping all the digits!
I need some help to finish this. I was trying to write something similar to a clock loop but failed.
Thanks
-
Sep 14th, 2001, 09:04 AM
#2
would this help?
Function Factorial_as_Log(X As Double) As Double
'
' Non-recursive factorial, returning f as f=f+log(f)
'
Dim i As Integer, f As Double
f = 0#
For i = 2 To X
f = f + Log(i)
Next i
Factorial_as_Log = f
End Function
-
Sep 14th, 2001, 09:50 AM
#3
Thread Starter
New Member
How do i use this code...i am a student learning how to program right now so i dont really know what i am doing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|