calculate-iteration-number(elem-nr a, [steps b], [offset c])

Calculates the number of iterations being necessary to process a given number a of elements when b elements are processed per iteration.

Description of Parameters

Parameter

Description

a

Total number of elements.

b

(optional) Number of elements being processed per iteration. Default: 1

c

(optional) Offset. Default: 0

Examples

Parameter a

Parameter b

Parameter c

Result

10

10

10

5

5

5

2

0

3

5

2

1

2

5

2

2

2

5

2

4

1

5

2

6

0