Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
36692c4a
Commit
36692c4a
authored
May 02, 2005
by
Jay Belanger
Browse files
(math-read-token): Replace string-to-int by string-to-number.
parent
0124c5bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lisp/calc/calc-aent.el
lisp/calc/calc-aent.el
+3
-3
No files found.
lisp/calc/calc-aent.el
View file @
36692c4a
;;; calc-aent.el --- algebraic entry functions for Calc
;; Copyright (C) 1990, 1991, 1992, 1993, 2001 Free Software Foundation, Inc.
;; Copyright (C) 1990, 1991, 1992, 1993, 2001
, 2005
Free Software Foundation, Inc.
;; Author: Dave Gillespie <daveg@synaptics.com>
;; Maintainer: Jay Belanger <belanger@truman.edu>
...
...
@@ -734,7 +734,7 @@ in Calc algebraic input.")
math-exp-pos
(
match-end
1
))
(
if
(
eq
(
string-match
"\\$\\([1-9][0-9]*\\)"
math-exp-str
math-exp-pos
)
math-exp-pos
)
(
setq
math-expr-data
(
-
(
string-to-
int
(
math-match-substring
(
setq
math-expr-data
(
-
(
string-to-
number
(
math-match-substring
math-exp-str
1
))))
(
string-match
"\\$+"
math-exp-str
math-exp-pos
)
(
setq
math-expr-data
(
-
(
match-end
0
)
(
match-beginning
0
))))
...
...
@@ -743,7 +743,7 @@ in Calc algebraic input.")
((
eq
ch
?\#
)
(
if
(
eq
(
string-match
"#\\([1-9][0-9]*\\)"
math-exp-str
math-exp-pos
)
math-exp-pos
)
(
setq
math-expr-data
(
string-to-
int
(
setq
math-expr-data
(
string-to-
number
(
math-match-substring
math-exp-str
1
))
math-exp-pos
(
match-end
0
))
(
setq
math-expr-data
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment