aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/outform.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-12 17:04:43 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-12 17:04:43 +0000
commit52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 (patch)
tree4b13ccc6d57c7c1ee615c83615b246c98eae388a /src/algebra/outform.spad.pamphlet
parent42d38bee45a64edfc12641053e58581c20584363 (diff)
downloadopen-axiom-52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9.tar.gz
* src/algebra/: Systematically use negative? when comparing for
less than 0.
Diffstat (limited to 'src/algebra/outform.spad.pamphlet')
-rw-r--r--src/algebra/outform.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/outform.spad.pamphlet b/src/algebra/outform.spad.pamphlet
index 40e09272..b73ef8c3 100644
--- a/src/algebra/outform.spad.pamphlet
+++ b/src/algebra/outform.spad.pamphlet
@@ -179,7 +179,7 @@ NumberFormats(): NFexports == NFimplementation where
c := s.i; i := i-1
n := romval ord c
-- (I)=1000, ((I))=10000, (((I)))=100000, etc
- if n < 0 then
+ if negative? n then
c ~= pren =>
error ["Improper character in Roman numeral: ",c]
nprens: PI := 1
@@ -198,7 +198,7 @@ NumberFormats(): NFexports == NFimplementation where
else
tot := tot + n
Max := n
- tot < 0 => error ["Improper Roman numeral: ", tot]
+ negative? tot => error ["Improper Roman numeral: ", tot]
tot::PI
@