[Challenge ] largest factorial

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: [Challenge ] largest factorial

Post by Mark Baker »

pytrin wrote:Completely agree with this. You should define the acceptable error margin and work within that.
In fact, there will be a margin of error in the basic recursive and loop methods because of the computer's storage of binary floating point numbers, so any results that fall outside of PHP's max integer range will be approximations.
Post Reply