Maybe you could have use of a fraction datatype