This was really screwing with me until I realized what was going on. I was having trouble with this line returning a Double when it should've returned an Integer And it still kept returning Double.