Dear Monks
In a script, I use factorials to calculate propabilities. I calculate my propabilities with
Of course this works fine with integers, but how can I calculate foctorials of floating point numbers?$limit=1000; @factorials=(1); foreach(1..$limit) { $factorial=$factorial*$_; push(@factorials,$factorial); }
In reply to Floating point factorials by Microcebus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |