aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/formula.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/formula.spad.pamphlet')
-rw-r--r--src/algebra/formula.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/formula.spad.pamphlet b/src/algebra/formula.spad.pamphlet
index a39f786d..19011081 100644
--- a/src/algebra/formula.spad.pamphlet
+++ b/src/algebra/formula.spad.pamphlet
@@ -402,7 +402,7 @@ ScriptFormulaFormat(): public == private where
str := stringify expr
%integer?(expr)$Foreign(Builtin) =>
i := expr : Integer
- if (i < 0) or (i > 9) then group str else str
+ if negative? i or (i > 9) then group str else str
(i := position(str,specialStrings)) > 0 =>
specialStringsInFormula.i
str