Trying to use the floor() function when calculating the number of dice rolled results in an error, presumably because it's already forced to round up. I'm guessing the same thing would happen if I tried to use the ceil() function or tried to calculate the number of sides of a dice. Subtracting .5 can act as a workaround for now.