James Smith wrote:
>> I don't know if CF has a factorial function, but one would be very easy to
>> write.
>>
>
> function Factorial(integer){
> Var TheFactorial=1;
> while (integer GT 0) {
> TheFactorial = TheFactorial*integer;
> integer = integer-1;
> }
> Return TheFactorial;
> }
>
> --
> Jay
Thanks Jay.
I was just practicing the combination formula with a calculator to make
sure I understood it before I tackled creating an CFML version and here
is one all ready to go.
Cool!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:258596
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5