fraction_comparison: Basic Comparison of Fractions

Description Usage Arguments Value Examples

Description

Operations for comparing pairs of fractions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
x1 %f<% x2

x1 %f>% x2

x1 %f<=% x2

x1 %f>=% x2

x1 %f==% x2

x1 %f!=% x2

Arguments

x1

The first fraction to be used.

x2

The second fraction to be used.

Value

A logical TRUE or FALSE.

Examples

1
2
3
4
"3 1/2" %f<% "14/4"
"3 1/2" %f==% "14/4"
"9/17" %f>% "10/19"
"-2/3" %f==% ("-1/3" %f*% "2")

mrdwab/mathrrr documentation built on July 20, 2020, 11:14 p.m.