Operations for comparing pairs of fractions.
x1 %f<% x2 x1 %f>% x2 x1 %f<=% x2 x1 %f>=% x2 x1 %f==% x2 x1 %f!=% x2
| x1 | The first fraction to be used. |
|---|---|
| x2 | The second fraction to be used. |
A logical TRUE or FALSE.
"3 1/2" %f<% "14/4"#> [1] FALSE"3 1/2" %f==% "14/4"#> [1] TRUE"9/17" %f>% "10/19"#> [1] TRUE"-2/3" %f==% ("-1/3" %f*% "2")#> [1] TRUE