সমললৈ যাওক

সাঁচ:Interval

অসমীয়া ৱিকিপিডিয়াৰ পৰা


1-2

This template determines which interval a given value lies in.

The intervals are defined by up to 4 unnamed parameters. The value to be determined is named parameter n.

Passing 2, 4 and 6 as the unnamed parameters defines the following intervals:

  • -∞<x<2
  • 2≤x<4
  • 4≤x<6
  • 6≤x<∞

Then:

0-1 because 1 is in the interval between the 0th and 1st values.

2-3 because 4 is in the interval between the 2nd and 3rd values.

2-3 because 5 is in the interval between the 2nd and 3rd values.

3-4 because 6 is in the interval between the 3rd and 4th values.