summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/rational.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote/rational.asy')
-rw-r--r--Master/texmf-dist/asymptote/rational.asy5
1 files changed, 5 insertions, 0 deletions
diff --git a/Master/texmf-dist/asymptote/rational.asy b/Master/texmf-dist/asymptote/rational.asy
index 0fa4ee36afa..a142063806d 100644
--- a/Master/texmf-dist/asymptote/rational.asy
+++ b/Master/texmf-dist/asymptote/rational.asy
@@ -87,6 +87,11 @@ bool operator ==(rational r, rational s)
return r.p == s.p && r.q == s.q;
}
+bool operator !=(rational r, rational s)
+{
+ return r.p != s.p || r.q != s.q;
+}
+
bool operator <(rational r, rational s)
{
return r.p*s.q-s.p*r.q < 0;