Results 1 to 3 of 3

Thread: To many characters!!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    2

    Question 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

  2. #2
    DerFarm
    Guest
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    2
    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
  •  



Click Here to Expand Forum to Full Width