Changed ints to doubles; works with decimals now!