Post Reply 
Example Program to calculate Factorial
02-02-2018, 08:53 AM
Post: #21
RE: Example Program to calculate Factorial
(02-02-2018 01:16 AM)toml_12953 Wrote:  But it's wrong!

69! is 1.711224655 E 98

No, 69! is 1,711224524 E+98.

The result calculated by the program is off in its last three digits. This is caused by the summation of the logs (the sum can and will be off in the last digit(s)) and the final exponential which increases the error.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Example Program to calculate Factorial - Dieter - 02-02-2018 08:53 AM



User(s) browsing this thread: 4 Guest(s)