MDL-20367 Grades: Allow real numbers as grade boundaries

Patch by Huy Hoang (I just git-ified it).