Hmm, anyone experienced something like this before? My float multiplications are coming out wrong, and since eventually have to cast them to an int, it has caused some problems. You would think 100.0 * 0.80 is simple enough not to equal 79.999992, but I guess not?
[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotMGEFBase[5] ====================> 100.000000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotFactor =====================> 0.800000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: mag = hPotMGEFBase[5] * hPotFactor ==> 79.999992[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: dur = hPotDuration .... dur =======> 2[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: MAG = ((mag / dur) as int) as float ==> 39.000000[11/18/2013 - 11:08:46PM] [11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotMGEFBase[4] ====================> 25.000000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotFactor =====================> 0.800000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: mag = hPotMGEFBase[4] * hPotFactor ==> 19.999998[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: dur = hPotDuration .... dur =======> 2[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: MAG = ((mag / dur) as int) as float ==> 9.000000[11/18/2013 - 11:08:46PM] [11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotMGEFBase[3] ====================> 50.000000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotFactor =====================> 0.800000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: mag = hPotMGEFBase[3] * hPotFactor ==> 39.999996[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: dur = hPotDuration .... dur =======> 2[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: MAG = ((mag / dur) as int) as float ==> 19.000000[11/18/2013 - 11:08:46PM] [11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotMGEFBase[2] ====================> 75.000000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotFactor =====================> 0.800000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: mag = hPotMGEFBase[2] * hPotFactor ==> 59.999996[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: dur = hPotDuration .... dur =======> 2[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: MAG = ((mag / dur) as int) as float ==> 29.000000[11/18/2013 - 11:08:46PM] [11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotMGEFBase[1] ====================> 100.000000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotFactor =====================> 0.800000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: mag = hPotMGEFBase[1] * hPotFactor ==> 79.999992[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: dur = hPotDuration .... dur =======> 2[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: MAG = ((mag / dur) as int) as float ==> 39.000000[11/18/2013 - 11:08:46PM] [11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotMGEFBase[0] ====================> 150.000000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: hPotFactor =====================> 0.800000[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: mag = hPotMGEFBase[0] * hPotFactor ==> 119.999992[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: dur = hPotDuration .... dur =======> 2[11/18/2013 - 11:08:46PM] :::::::::::::::::::::::::::::::::::::::: MAG = ((mag / dur) as int) as float ==> 59.000000