stepCount MethodStatic

Return the number of steps to take so that numSteps * stepSize >= total.

  • minCount is returned in the following 3 cases:
    • (a) stepSize <= 0
    • (b) stepSize >= total
    • (b) numSteps < minCount
  • maxCount is returned if numSteps > maxCount.

stepCount(stepSize: number, total: number, minCount: number1, maxCount: number101): number

Parameter Type Description
stepSize number  
total number  
minCount number  
maxCount number  

Returns - number

Defined in

Last Updated: 14 November, 2024