This simplifies the code compared to either rolling our own or awkwardly using math's float functions with integers.