The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ProductConsecInts


Unit:SDL_math1
Class: None
Declaration: function ProductConsecInts (First, Last: integer): int64;

The function ProductConsecInts calculates the product of consecutive integer numbers starting at First up to and including Last. The function returns the following error codes:
-1 if the product is too large, i.e. if the product is larger than 263-1 (approx. 9.22*1018)
-2 if any of the parameters is negative


Last Update: 2020-Aug-18