Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Generate series of numbers

Discussion in 'Information Technology' started by DaveRobichaud@gmail.com, Nov 15, 2005.

  1. DaveRobichaud@gmail.com

    DaveRobichaud@gmail.com
    Expand Collapse
    Guest

    Hey everybody!

    I'm trying to build a small application that will basically generate a
    range of numbers for a specified beginning and end point.

    However, it also needs to "shorten" the numbers in assuming that if I
    wanted a range from 2000 to 2059, the result should be 200, 201, 202,
    203, 204, and 205.
    Understanding that the results mean 200*, 201*, and so on.

    Conversly, if I put in 2000 to 2038, it will give me results like this:

    200, 201, 202, 2030, 2031, 2032, 2033, 2034, 2035, 2036, 2037, 2038.

    Also, the to and from numbers are not limited to 4 digits... they can
    be as high 7 or 8 digits long.

    I really don't even know where to begin with this.
    Any help would be greatly appreciated!
    Thanks in advance,
    Dave
     
  2. Loading...

    Similar Threads Forum Date
    Sikh News Punjab to use vacant land to generate revenues (New Kerala) Breaking News Feb 19, 2008
    Sikh Foundation Sikhi is not What but How: A 4-Part Series Sikh Organisations Oct 20, 2013
    1984 RTI Judgement Series: Missing Reports of 1984 Sikh Riots History of Sikhism Mar 20, 2013
    Christianity The Bible TV Series Interfaith Dialogues Mar 10, 2013
    Sheikh Farid ji Bani/ਸੇਖ ਫਰੀਦ ਜੀਉ ਕੀ ਬਾਣੀ – No. 4 in Series Bani Sheikh Farid Apr 8, 2012

  3. John Vinson

    John Vinson
    Expand Collapse
    Guest

    On 14 Nov 2005 09:42:57 -0800, DaveRobichaud@gmail.com wrote:

    >Hey everybody!
    >
    >I'm trying to build a small application that will basically generate a
    >range of numbers for a specified beginning and end point.


    ok...

    >However, it also needs to "shorten" the numbers in assuming that if I
    >wanted a range from 2000 to 2059, the result should be 200, 201, 202,
    >203, 204, and 205.
    >Understanding that the results mean 200*, 201*, and so on.


    No. I don't understand this. 200 is a smaller number than 2000 and it
    is not in the range between 2000 and 2059. For that matter, if any
    truncation is allowed, then you should also get 2 and 20.

    Where will these non-numeric "numbers" be stored? What is the business
    requirement?

    >Conversly, if I put in 2000 to 2038, it will give me results like this:
    >
    >200, 201, 202, 2030, 2031, 2032, 2033, 2034, 2035, 2036, 2037, 2038.


    And not 203?

    >Also, the to and from numbers are not limited to 4 digits... they can
    >be as high 7 or 8 digits long.


    Truncated to... what? 3? 3, 4, 5, and 6? or what?

    >I really don't even know where to begin with this.


    Me neither, since the requirement appears to make no sense!

    John W. Vinson[MVP]
     

Share This Page