convert 1-100 rating into 1:5 ratio code

41

OldRange = (OldMax - OldMin)  
NewRange = (NewMax - NewMin)  
NewValue = (((OldValue - OldMin) * NewRange) / OldRange) + NewMin

Comments

Submit
0 Comments