using modulo for real number formatting