[Solved] Factorial Math Function

Hello,
May be I missed something… When I try to run your procedure, the result is one… Where is my mistake ?
TEFA is my Input field
label44 my label
ap is my variable (-> number)