mattlundstrom
7/13/2012 - 7:48 PM

AS3 Percentage Between Min and Max

AS3 Percentage Between Min and Max



function percentage( X:Number, minValue:Number, maxValue:Number ):Number
{
	return (X - minValue)/(maxValue - minValue) * 100;
}