comparison ok for decimal numbers with precision fixed according to the denominator (=10^p)