3 Replies Latest reply: Apr 8, 2016 7:31 AM by Henric Cronström RSS

    Class function with closed intervals?


      I managed to use the class function with a variable as interval.

      I use only interval widths which looks good to the user.

      0 - 25 ; 25 - 50 ; ... looks better than 0 - 23,46 ; 23,46 - 46,92 ...


      So far so good.


      But the class function returns half opend intervals [interval-start, interval-end[.

      I think my user assume the behavior of closed intervals.


      What I would like to do is:

      Substranct the smallest unit from the interval-end and make it closed.

      0 - 24,99 ; 25 - 49,99

      If I could do it like that I have no data between the gap (thus use the smallest unit) and I have no overlapping data which I would have if only converting to closed intervals.


      Is there a (easy) way to achieve this?


      Thx in advance.