Was this page helpful?

Num.Series

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    num.Series(starting : num, ending : num, step: num ) : str
    

    Create a series of numbers.

    Usage Restrictions

    8.08 or later

    Parameters

    Name Type Description
    starting num Beginning value
    ending num Ending value
    length num (default: 1 or -1) The length of increments between values in the series

    Result

    A series of numbers that are equally incremented.

    Samples

      Output

    To build a series of numbers, from low to high:

    {{ num.Series(0, 100, 4) }} 

     

    [ 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100 ]

    To build a series of numbers, from high to low:

    {{ num.Series(100, 0, -4) }} 

     

    [ 100, 96, 92, 88, 84, 80, 76, 72, 68, 64, 60, 56, 52, 48, 44, 40, 36, 32, 28, 24, 20, 16, 12, 8, 4, 0 ]

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by