Handle either floats or ints.