Is there a function in VB which does factorials? Currently I am using a loop which just multiplies itself by the loop counter.

I am unsure how to calculate a factorial of a non-integer. Can anyone help me?

Thanks