title: C# Check range of value with valid increments
body: <p>Seems simple, but can't find an elegant way... I want to check if a value is within a certain range, but also is using a valid increment/resolution. Say my range is 0.1 to 99.9, with a resolution of .1. Valid values would be 1.1 and 1.2, but 1.15 is not valid. How would I check that?</p>