What is the best way to handle multiple To and From ranges?

Our users need to specify multiple ranges of quantities and specify a price for each range. I can't post an image or I would show this concept mocked-up.

enter image description here

My question is: Imagine the user is able to specify a quantity of 10.5 (maybe it's a software license for 10.5 years)...what is the price?

Some would argue that the ranges should be:

  • From 0-10, my price is $50.
  • From 10-15, my price is $40.
  • From 15+, my price i $30.

But, then what if my quantity is exactly 10?

What is the best way to handle ranges like this, assuming the user can enter decimal values for the quantity, but also avoiding having to require the user to enter 0 to 10.99, 11 to 15.99, etc?