This code is for having a range for value 127. 127 was from 0.993 to 1.0 in the original version. After your change only pure 1.0 becomes 127. Is there a reason not to keep it?