question: private float checkValid ( final float val ) { float tempval = val ; if ( val > 1 ) { tempval = 1 ; } if ( val < 0 ) { tempval = 0 ; } return tempval ; }
target:  Check whether the specified saturation is valid or not.