how do I do factorial?
Moderators: JRL, Dorian (MJT support)
how do I do factorial?
how do I do factorial?
Hi paranova9,
A quick search of these forums for: factorial
http://www.mjtnet.com/forum/viewtopic.p ... =factorial
...found the post at the above link. You'll find a way to do it there.
Take care
A quick search of these forums for: factorial
http://www.mjtnet.com/forum/viewtopic.p ... =factorial
...found the post at the above link. You'll find a way to do it there.
Take care
jpuziano
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -

Hi paranova9,
Could you please post it here in case others might have a similar need?
Thanks and take care
Great to hear you wrote your own that worked... and I take it its just MS code without VBScript?paranova9 wrote:i saw that page b4 I posted, tried it, couldn't get it to work. no bother though, i wrote my own subroutine to do the job.
Could you please post it here in case others might have a similar need?
Thanks and take care
jpuziano
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -
Note: If anyone else on the planet would find the following useful...
[Open] PlayWav command that plays from embedded script data
...then please add your thoughts/support at the above post -

Try this. It should work for you.i saw that page b4 I posted, tried it, couldn't get it to work
Code: Select all
VBSTART
function factorial(N)
if N = 0 then
factorial = 1
exit function
end if
factorial = N * factorial(N-1)
end function
VBEND
VBEval>factorial(5),fac