Nomor gips Python ke antara 0 dan 1

NewValue = (((OldValue - OldMin) * (NewMax - NewMin)) / (OldMax - OldMin)) + NewMin
Real Raccoon