Sage X3 provides a special function to calculate permutation of any integer value.
The function anp() calculates the number of permutations (for example, ordered arrangements) of p objects taken from n.
Syntax for the same is :
where, N and P are integer expressions. P must be in the [0,N] range.
The function anp(N,P) returns fac(N)/ fac(N-P).
To avoid loosing precision, the calculation algorithm does not use the factorial function. If N and P are not integer values, they are truncated.
The type of result is Integer or Decimal depending if the value is smaller or greater than 2^31-1.
|10||Not a numeric argument.|
|13||Out of range calculation.|
Hope this helps!
Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.
Greytrix have some unique solutions of Sage X3 integration with Sage CRM, Salesforce.com and Magento eCommerce along with Sage X3 migration from Sage 50 US, Sage Pro and QuickBooks. We also offer best-in-class Sage X3 customization and development services to Sage business partners, end users, and Sage PSG worldwide.
For more information on Sage X3 Integration and Services, please contact us at email@example.com. We will be glad to assist you.