@jagtalon This seems like a generally-useful function that could be added to the Number prototype.